You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/database/seeders/GfxSeeder.php

83 lines
1.9 KiB
PHTML

<?php
namespace Database\Seeders;
use App\Models\Gfx;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class GfxSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//
$array = [
[
'key'=>'background',
'label'=>'background color',
'system'=>'1',
'value'=> '#eeeeee'
],
[
'key'=>'primary',
'label'=>'Primary color',
'system'=>'1',
'value'=> '#03b2b5'
],
[
'key'=>'secondary',
'label'=>'Secondary color',
'system'=>'1',
'value'=> '#0064c2'
],
[
'key'=>'text',
'label'=>'Text color',
'system'=>'1',
'value'=> '#111111'
],
4 months ago
[
'key'=>'dark',
'label'=>'Theme mode',
'system'=>'1',
'value'=> '0'
],
[
'key'=>'border-radius',
'label'=>'Border radius',
'system'=>'1',
'value'=> '7px'
],
[
'key'=>'shadow',
'label'=>'Shadow',
'system'=>'1',
'value'=> '2px 2px 4px #777777'
],
[
'key'=>'container',
'label'=>'Container',
'system'=>'1',
'value'=> 'container'
],
[
'key'=>'font',
'label'=>'font',
'system'=>'1',
'value'=> 'Vazir'
],
];
foreach ($array as $item) {
$item['created_at'] = date('Y-m-d H:i:s');
Gfx::insert($item);
}
}
}