© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
8 replies
Wirkhof

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);
}
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

issue when php artisan migrate?
FilamentFFilament / ❓┊help
2y ago
php artisan storage:link
FilamentFFilament / ❓┊help
2y ago
`php artisan filament:install --panels` fails for non-admin input
FilamentFFilament / ❓┊help
3y ago
Strange php artisan optimize error
FilamentFFilament / ❓┊help
14mo ago