Laravel Artisan Commands
Artisan is the command-line tool that ships with every Laravel app. A command-line tool is a program you run by typing commands in the terminal.
List commands
This command lists every Artisan command.
php artisan listGet help
This command explains the serve command.
php artisan help serveExample
php artisan listKey points
- Artisan: the command-line tool that ships with every Laravel app.
- Artisan commands start with php artisan.
- list shows every command the app offers.
- about shows basic facts about the app.
- help shows how one command works.
In this example, the command lists every Artisan command. The list includes about, serve, test and tinker. Each line names one command and says what it does.
Try it Yourself
Edit the code, then press Run.
Running is simulated
Exercise
How do you list every Artisan command?