2018-11-25 21:57:23 +00:00
|
|
|
# php artisan
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> Laravel's Artisan command-line interface.
|
2019-05-29 14:53:45 +01:00
|
|
|
> More information: <https://laravel.com/docs/artisan>.
|
2018-11-25 21:57:23 +00:00
|
|
|
|
|
|
|
- Start PHP's built-in web server for the current Laravel application:
|
|
|
|
|
|
|
|
`php artisan serve`
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
- Start an interactive PHP command-line interface:
|
2018-11-25 21:57:23 +00:00
|
|
|
|
|
|
|
`php artisan tinker`
|
|
|
|
|
|
|
|
- Generate a new Eloquent model class with a migration, factory and resource controller:
|
|
|
|
|
|
|
|
`php artisan make:model {{ModelName}} --all`
|
|
|
|
|
|
|
|
- Display a list of all available commands:
|
|
|
|
|
|
|
|
`php artisan help`
|