point-backend/database/seeders/KeysSeeder.php
karimalden 282d38308e done
2024-07-29 15:25:15 +03:00

67 lines
1.5 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\Key;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class KeysSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$keys = [
// [
// 'key' => 'home_main_image',
// 'value' => '/',
// 'type' => 'home',
// ],
[
'key' => 'portfolio',
'value' => '/',
'type' => 'home',
],
[
'key' => 'about_us_title',
'value' => 'About Us',
'type' => 'about_us',
],
[
'key' => 'about_us_description',
'value' => 'about_us_description',
'type' => 'about_us',
],
[
'key' => 'contact_us_title',
'value' => 'Contact Us',
'type' => 'contact_us',
],
[
'key' => 'links',
'value' => "links",
'type' => 'setting',
],
[
'key' => 'facebook',
'value' => "facebook",
'type' => 'setting',
],
[
'key' => 'linkedin',
'value' => "linkedin",
'type' => 'setting',
],
];
foreach ($keys as $key) {
Key::create($key);
}
}
}