Artisan CLI

Command-line tools for common tasks

Artisan is Laravel's CLI tool. It automates generating files, running migrations, clearing caches, and more.

Generate boilerplate files for models, controllers, migrations, and more.

Terminal
Generated files
Post.php
create_posts_table.php
PostFactory.php
PostController.php
Model + migration + factory + controller
Terminal
$ php artisan make:model Post -mfc
# Model + migration + factory + controller
Previous
20 / 20