Fixed for settings not existing MK2

This commit is contained in:
cp6 2024-05-14 21:52:38 +10:00
parent 1aab332ef8
commit 6e55018974
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ class Settings extends Model
if (is_null($settings)){ if (is_null($settings)){
$settings = Settings::create(); $settings = Settings::create();
} }
return self::where('id', 1)->first(); return $settings;
}); });
} }

View file

@ -8,7 +8,7 @@ class DatabaseSeeder extends Seeder
{ {
public function run() public function run()
{ {
//\App\Models\User::factory(1)->create();//Disable demo first user creation \App\Models\User::factory(1)->create();//Disable demo first user creation
$this->call(SettingsSeeder::class); $this->call(SettingsSeeder::class);
$this->call(ProvidersSeeder::class); $this->call(ProvidersSeeder::class);
$this->call(LocationsSeeder::class); $this->call(LocationsSeeder::class);