svoydom/database/seeders/LocalizationSeeder.php

35 lines
617 B
PHP
Raw Normal View History

2023-05-17 09:57:20 +03:00
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Localization;
class LocalizationSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$languages=[
[
'id'=>1,
'name'=>'kz'
],
[
'id'=>2,
'name'=>'ru'
],
];
foreach($languages as $lang){
Localization::create($lang);
}
}
}