restore composer.json, add mysqli extension
This commit is contained in:
69
database/seeders/BrandSeeder.php
Executable file
69
database/seeders/BrandSeeder.php
Executable file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Brand;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class BrandSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
Brand::create([
|
||||
'name' => [
|
||||
'uz' => 'Apple',
|
||||
'ru' => 'Яблоко',
|
||||
],
|
||||
"position"=>1,
|
||||
'image' => 'apple.png',
|
||||
]);
|
||||
|
||||
Brand::create([
|
||||
'name' => [
|
||||
'uz' => 'Samsung',
|
||||
'ru' => 'Самсунг',
|
||||
],
|
||||
"position"=>2,
|
||||
'image' => 'samsung.png',
|
||||
]);
|
||||
|
||||
Brand::create([
|
||||
'name' => [
|
||||
'uz' => 'Xiaomi',
|
||||
'ru' => 'Шаоми',
|
||||
],
|
||||
"position"=>3,
|
||||
'image' => 'xiaomi.png',
|
||||
]);
|
||||
|
||||
Brand::create([
|
||||
'name' => [
|
||||
'uz' => 'Huawei',
|
||||
'ru' => 'Хуавей',
|
||||
],
|
||||
"position"=>4,
|
||||
'image' => 'huawei.png',
|
||||
]);
|
||||
|
||||
Brand::create([
|
||||
'name' => [
|
||||
'uz' => 'Nokia',
|
||||
'ru' => 'Нокиа',
|
||||
],
|
||||
"position"=>5,
|
||||
'image' => 'nokia.png',
|
||||
]);
|
||||
|
||||
Brand::create([
|
||||
'name' => [
|
||||
'uz' => 'Sony',
|
||||
'ru' => 'Сони',
|
||||
],
|
||||
"position"=>6,
|
||||
'image' => 'sony.png',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user