mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-19 01:28:37 +00:00
Fixed for settings not existing MK2
This commit is contained in:
parent
1aab332ef8
commit
6e55018974
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class Settings extends Model
|
|||
if (is_null($settings)){
|
||||
$settings = Settings::create();
|
||||
}
|
||||
return self::where('id', 1)->first();
|
||||
return $settings;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ class DatabaseSeeder extends Seeder
|
|||
{
|
||||
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(ProvidersSeeder::class);
|
||||
$this->call(LocationsSeeder::class);
|
||||
|
|
Loading…
Add table
Reference in a new issue