Found answer on my own. Used example from: Database: Seeding
DB::table('users')->insert([
'name' => str_random(10),
'email' => str_random(10).'@gmail.com',
'password' => bcrypt('secret'),
]);
for me:
DB::table('categories')->insert([
'lv_title' => $lv[$i],
'en_title' => $en[$i],
'ru_title' => $ru[$i]
]);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community