23 lines
512 B
PHP
23 lines
512 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Admin;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Str;
|
|
|
|
class AdminSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
Admin::create([
|
|
'id' => Str::uuid()->toString(),
|
|
'name' => 'Admin Monitoring',
|
|
'email' => 'admin@monitoring.com',
|
|
'password' => bcrypt('monitoring123'),
|
|
'email_verified_at' => now(),
|
|
'remember_token' => Str::random(10),
|
|
]);
|
|
}
|
|
}
|