Aknaproff/database/seeders/SystemsTableSeeder.php
2023-09-21 13:45:08 +01:00

24 lines
433 B
PHP

<?php
namespace Database\Seeders;
use App\System;
use Illuminate\Database\Seeder;
class SystemsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$datas = ['version' => config('author.app_version')];
foreach ($datas as $key => $value) {
System::updateOrCreate(['key' => $key], ['value' => $value]);
}
}
}