console (1)


Artisan, our best friend

Well, to start, artisan is based on Console component of Symfony. Let’s see what the documentation says about the Artisan.

Artisan is the command-line interface included with Laravel. It provides a number of helpful commands that can assist you while you build your application.

In this post we will focuses on most used commands from artisan. Artisan is nothing more than a php script that runs in console and can assist us in some boring and repetitive tasks.

If you use the list commands, you will see the complete list of available commands in artisan.

Like documentation says:

Every command also includes a “help” screen which displays and describes the command’s available arguments and options. To view a help screen, simply precede the name of the command with help:

Important notes

  • I advise you to see all commands with help to understanding more about the artisan;
  • You can create your own commands;
  • Commands are grouped by context;