28 lines
1.1 KiB
PHP
28 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Enums\SettingTypes;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class SettingTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('settings')->insert([
|
|
['key' => 'version', 'value' => '1', 'type' => SettingTypes::numeric()->value],
|
|
['key' => 'ShowIsActive', 'value' => '0', 'type' => SettingTypes::numeric()->value],
|
|
['key' => 'MainColor', 'value' => '#DE0017', 'type' => SettingTypes::string()->value],
|
|
['key' => 'SquaredLogo', 'value' => 'storage/setting_img/default.png', 'type' => SettingTypes::picture()->value],
|
|
['key' => 'RectangleLogo', 'value' => 'storage/setting_img/default.png', 'type' => SettingTypes::picture()->value],
|
|
['key' => 'BackgroundImage', 'value' => 'storage/setting_img/default.png', 'type' => SettingTypes::picture()->value],
|
|
['key' => 'HomeButtonImage', 'value' => 'storage/setting_img/default.png', 'type' => SettingTypes::picture()->value],
|
|
]);
|
|
}
|
|
}
|