Artisan is the command-line interface included with the Laravel framework. It provides a number of helpful commands for common tasks during development, such as generating boilerplate code, running database migrations, and managing queues.
Artisan is invoked through the artisan file in the root of every Laravel project. To see a list of all available commands, run:
php artisan list
Some of the most frequently used Artisan commands include:
php artisan serve # Start the local development server
php artisan migrate # Run database migrations
php artisan make:model Post # Generate a new Eloquent model
php artisan make:controller PostController
php artisan tinker # Open an interactive REPL
Developers can add their own commands to a Laravel application by generating a command class with php artisan make:command. Custom commands extend the base Command class and implement a handle method containing the command's logic, and are automatically registered and available through Artisan once created.
Artisan also powers Laravel's task scheduler, which lets scheduled commands be defined in code rather than as individual server cron entries, with a single cron entry invoking schedule:run every minute.
By: Tomas Silny
Edited: 2026-08-13 03:31:18