33 lines
725 B
PHP
33 lines
725 B
PHP
<?php
|
|
|
|
namespace Modules\Subscription\database\seeders;
|
|
|
|
use Illuminate\Support\Str;
|
|
use Illuminate\Database\Seeder;
|
|
use Modules\Subscription\app\Models\Subscription;
|
|
|
|
class SubscriptionDatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$subscription = [
|
|
[
|
|
'email' => 'admin@jhigutech.com',
|
|
],
|
|
[
|
|
'email' => 'staff@jhigutech.com',
|
|
],
|
|
];
|
|
|
|
foreach ($subscription as $subscription) {
|
|
$subscription = Subscription::create([
|
|
'uuid' => Str::uuid(),
|
|
'email' => $subscription['email'],
|
|
]);
|
|
}
|
|
}
|
|
}
|