F
Filament6mo ago
Cushty

Create filament admin via seed?

Hi, it gets annoying making a new filament user every time I do a migrate fresh, is there a way to create on the fly with a seeder? Thanks
Solution:
As Leandro pointed out: Locally you can just run a Seeder. If you want to same for produciton, I created a package some time ago to create "database states" which always seed after migration: https://github.com/pxlrbt/laravel-database-state...
GitHub
GitHub - pxlrbt/laravel-database-state: Seed critical state your da...
Seed critical state your databases with production data. - pxlrbt/laravel-database-state
Jump to solution
3 Replies
LeandroFerreira
LeandroFerreira6mo ago
Honestly, I didn't understand this... Couldn't you create a UserSeeder?
Solution
Dennis Koch
Dennis Koch6mo ago
As Leandro pointed out: Locally you can just run a Seeder. If you want to same for produciton, I created a package some time ago to create "database states" which always seed after migration: https://github.com/pxlrbt/laravel-database-state
GitHub
GitHub - pxlrbt/laravel-database-state: Seed critical state your da...
Seed critical state your databases with production data. - pxlrbt/laravel-database-state
Cushty
CushtyOP6mo ago
thanks guys
Want results from more Discord servers?
Add your server