After "php artisan migrate:fresh" the admin is lost
How to prevent the admin being lost after migration from scratch?
Solution
Add inside run method of the file
"database/seeders/DatabaseSeeder.php" this code:
public function run()
{
$this->call(AdminUserSeeder::class);
}
"database/seeders/DatabaseSeeder.php" this code:
public function run()
{
$this->call(AdminUserSeeder::class);
}