Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 1.76 KB

commands.md

File metadata and controls

75 lines (48 loc) · 1.76 KB

Documentation > Commands

Commands

Commands to make your development speed blazing fast.

Making Auth

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.

Making CRUD

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

Making Models

Make a model & factory with automatic migration methods included:

php artisan make:amodel {class} {--force}

Running Automatic Migrations

Run automatic migrations using model migration methods:

php artisan migrate:auto {--f|--fresh} {--s|--seed} {--force}

Clearing the Log File

Clear the Laravel log file:

php artisan log:clear