HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

php artisan — Laravel's Artisan command-line interface. More information: <https://laravel.com/docs/artisan>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandlaravelinterfacecliphp artisanlineartisan

Problem

How to use the php artisan command: Laravel's Artisan command-line interface. More information: <https://laravel.com/docs/artisan>.

Solution

php artisan — Laravel's Artisan command-line interface. More information: <https://laravel.com/docs/artisan>.

Start PHP's built-in web server for the current Laravel application:
php artisan serve


Start an interactive PHP command-line interface:
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

Code Snippets

Start PHP's built-in web server for the current Laravel application

php artisan serve

Start an interactive PHP command-line interface

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

Context

tldr-pages: common/php artisan

Revisions (0)

No revisions yet.