reconstruction of the project
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Concerns;
|
||||
|
||||
use App\Models\Configuration;
|
||||
|
||||
trait SeedsAdministratorApiConfig
|
||||
{
|
||||
protected function seedAdministratorApiConfig(
|
||||
string $schoolYear = '2025-2026',
|
||||
string $semester = 'Fall'
|
||||
): void {
|
||||
Configuration::unguard();
|
||||
|
||||
Configuration::query()->updateOrCreate(
|
||||
['config_key' => 'school_year'],
|
||||
['config_value' => $schoolYear]
|
||||
);
|
||||
|
||||
Configuration::query()->updateOrCreate(
|
||||
['config_key' => 'semester'],
|
||||
['config_value' => $semester]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user