Generator Commands
If you’ve installed Laravel FlexAdmin, you already have access to the FlexAdmin command line interface. Here’s that same list, a bit more organized:
php artisan flex:scaffold YourModel
Generate Admin Controller
php artisan flex.scaffold:controller YourModel
Generate Model
php artisan flex:model YourModel
Rollback: To rollback all generated files, we have the following command,
php artisan flex:rollback YourModel scaffold