feat: seed pricey bot user

This commit is contained in:
Nicholas Ciechanowski 2023-10-07 19:08:16 +11:00
parent 19f07b0068
commit 317c9c2740
2 changed files with 26 additions and 0 deletions

View File

@ -13,5 +13,6 @@ class DatabaseSeeder extends Seeder
public function run(): void public function run(): void
{ {
$this->call(BaseQuotesSeeder::class); $this->call(BaseQuotesSeeder::class);
$this->call(PriceyBotSeeder::class);
} }
} }

View 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(),
]);
}
}