feat: seed pricey bot user
This commit is contained in:
parent
19f07b0068
commit
317c9c2740
@ -13,5 +13,6 @@ class DatabaseSeeder extends Seeder
|
||||
public function run(): void
|
||||
{
|
||||
$this->call(BaseQuotesSeeder::class);
|
||||
$this->call(PriceyBotSeeder::class);
|
||||
}
|
||||
}
|
||||
|
||||
25
database/seeders/PriceyBotSeeder.php
Normal file
25
database/seeders/PriceyBotSeeder.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Enums\UserStatus;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class PriceyBotSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
User::create([
|
||||
'firstname' => 'Pricey',
|
||||
'lastname' => 'Bot',
|
||||
'email' => 'priceybot@nexigen.digital',
|
||||
'uuid' => '',
|
||||
'profile' => '',
|
||||
'status' => UserStatus::ACTIVE,
|
||||
'is_admin' => true,
|
||||
'password' => Str::password(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user