migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Restaurant\Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Modules\Restaurant\Models\Addon;
|
||||
|
||||
class AddonTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$addons = [
|
||||
['name' => 'Cookie', 'price' => 2.50, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
['name' => 'Chilli Sauce', 'price' => 1.20, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
['name' => 'Sour Plum Powder', 'price' => 0.99, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
['name' => 'Extra Meat', 'price' => 3.99, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
['name' => 'BBQ Sauce', 'price' => 1.50, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
['name' => 'Fresh Milk', 'price' => 2.00, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
['name' => 'Enoki Mushrooms', 'price' => 2.99, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
['name' => 'Chilli Padi', 'price' => 0.80, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
['name' => 'Cheese', 'price' => 2.50, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
['name' => 'Soup of the Day', 'price' => 3.99, 'vat' => 5, 'pst' => 0, 'status' => 1],
|
||||
];
|
||||
|
||||
foreach ($addons as $addon) {
|
||||
Addon::updateOrCreate(['restaurant_id' => 1, 'name' => $addon['name']], $addon);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user