Aknaproff/database/seeders/SystemsTableSeeder.php

24 lines
433 B
PHP
Raw Normal View History

2023-09-21 12:45:08 +00:00
<?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]);
}
}
}