35 lines
617 B
PHP
Executable File
35 lines
617 B
PHP
Executable File
<?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);
|
|
}
|
|
|
|
}
|
|
}
|