Documentation > Commands
Commands to make your development speed blazing fast.
Make full UI & Auth scaffolding:
php artisan make:auth {--force}
This command will configure NPM assets, install the Auth scaffolding including login, register, password forgot, profile updating, etc, and create full user CRUD.
When you run this command, it will ask which version of Font Awesome you want to use. In order to use the pro version, you must have the global NPM token configured.
Make CRUD for a model:
php artisan make:crud {path} {--model=} {--force}
The path
is where the Livewire components and Blade views will go:
php artisan make:crud Users
Making CRUD inside a subdirectory:
php artisan make:crud Admin/Users
If the model does not exist, it will be created automatically. The package is smart enough to know that the model would be User
in the examples above.
Specifying the model to use:
php artisan make:crud Admin/Managers --model=User
Make a model & factory with automatic migration methods included:
php artisan make:amodel {class} {--force}
Run automatic migrations using model migration
methods:
php artisan migrate:auto {--f|--fresh} {--s|--seed} {--force}
Clear the Laravel log file:
php artisan log:clear