migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Restaurant\Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Modules\Restaurant\Models\PaymentMethod;
|
||||
|
||||
class PaymentMethodSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$methods = ['Cash', 'Card', 'Online'];
|
||||
|
||||
foreach ($methods as $method) {
|
||||
PaymentMethod::create([
|
||||
'restaurant_id' => 1,
|
||||
'name' => $method,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user