migrate template
This commit is contained in:
55
database/seeders/SignatureItemSeeder.php
Normal file
55
database/seeders/SignatureItemSeeder.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\SignatureItem;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class SignatureItemSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$items = [
|
||||
[
|
||||
'name' => 'Gowaldyrylan Tomahawk',
|
||||
'price' => 890,
|
||||
'price_unit' => 'kg',
|
||||
'description' => '45 gün gowaldyrylan ribeye, baý we nahar tagamly. Paýlaşmak üçin amatly.',
|
||||
'image' => null,
|
||||
'sort_order' => 1,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Öýde duzlanan we tüsse edilen goş',
|
||||
'price' => 420,
|
||||
'price_unit' => 'kg',
|
||||
'description' => 'Galyň bölekli goş göwresi, akderweýi bilen duzlanan we 12 sagat galadan agachynda tüsse edilen.',
|
||||
'image' => null,
|
||||
'sort_order' => 2,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Açy goş Merguez',
|
||||
'price' => 280,
|
||||
'price_unit' => 'kg',
|
||||
'description' => 'Miras goş harissa, zira we rezene bilen. Demirgazyk Afrikanyň klasykasy.',
|
||||
'image' => null,
|
||||
'sort_order' => 3,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Miras göýün taý kebi',
|
||||
'price' => 650,
|
||||
'price_unit' => 'kg',
|
||||
'description' => 'Bellik taý kebi, usta taýýarlykda frenc we baglanan.',
|
||||
'image' => null,
|
||||
'sort_order' => 4,
|
||||
'is_active' => true,
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($items as $item) {
|
||||
SignatureItem::create($item);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user