Laravel | Artisan Commands to know in Laravel Last Updated : 30 Dec, 2019 Comments Improve Suggest changes Like Article Like Report Artisan is a command-line interface that Laravel provides which helps in making the production process fast and easy. Laravel has its own Command Line interface called Artisan. Its like a Linux command line but the commands are helpful for building a Laravel application. With this command-line tool, we can make models, controllers, and can do data migrations and many more. First, we will have to change the directory in your command line console (i.e. cmd on windows or terminal on Linux/Mac) or any other CLI software, to the directory of your Laravel app. For Controller: The following command will create a controller: php artisan make:controller ArticleController Output: Command below is to create a controller and a model together: php artisan make:controller ArticleController -m Article Output: For Eloquent Model: The following command will create a eloquent model: php artisan make:model Article Output: For Front-end Scaffolding: The following command will create a front-end scaffolding for the for Bootstrap: php artisan ui bootstrap Output: The following command will create a front-end scaffolding for the for Vue: php artisan ui vue Output: The following command will create a front-end scaffolding for the for React: php artisan ui react Output: To remove the scaffolding, use the below command: php artisan preset none Output: Note: You will need to run ‘composer require laravel/ui --dev’ for installing ‘laravel/ui’ package before using the above command. For Authentication Configuration: The following command will create a full authentication system: php artisan ui vue --auth Output: For Migration: The following command will create a migration: php artisan make:migration create_articles_table Output: To do database migration for all the tables, run the command below: php artisan migrate Output: For Route: The following command will display list of all the routes: php artisan route:list Output: For Tinker: The following command will start tinker: php artisan tinker Output: For Starting Development Server: The following command will start the Laravel development server and provide a URL to visit the running Laravel application: php artisan serve Output: For Maintenance Mode: The following command can be used to take the Laravel application in or out of the Maintenance Mode: In Maintenance: php artisan down Output: Out of Maintenance: php artisan up Output: For Listing Commands: The following command will display a list of all the command that are available: php artisan list Output: You can also write juts ‘php artisan’ without ‘list’ and will work the same and list out all the artisan commands. Note: To know more about any command, use -h or --help at the end of the command. Comment More infoAdvertise with us Next Article Laravel | Artisan Commands to know in Laravel aakashpawar1999 Follow Improve Article Tags : Technical Scripter Web Technologies PHP Laravel Similar Reads Laravel | Artisan Console Introduction Laravel has its own Command Line interface called Artisan. Its like a Linux command line but the commands are helpful for building a Laravel application. With this command-line tool, we can make models, controllers, and can do data migrations and many more. First, we will have to change the director 2 min read How to Filter a Collection in Laravel? In Laravel, filtering a collection involves selecting specific items based on set conditions, offering flexibility and control over data. This process helps refine collections to meet specific criteria for enhanced data management. Below are the methods to filter a collection in Laravel: Table of Co 3 min read Laravel | Controller Basics Laravel is an MVC based PHP framework. In MVC architecture, 'C' stands for 'Controller'. A Controller is that which controls the behavior of a request. It handles the requests coming from the Routes. In Laravel, a controller is in the âapp/Http/Controllersâ directory. All the controllers, that are t 2 min read How to become a Laravel Developer? Laravel is a widely used PHP framework that makes web development easier, faster, and more secure. Itâs popular among developers because of its clean code structure and powerful features. If you want to become a Laravel Developer, this guide will show you everything you need to know, including key s 9 min read How to remove a package from Laravel using PHP Composer? Laravel is a famous PHP framework, and it uses Composer to handle packages. Adding packages to the Laravel project is something you often do, but sometimes you need to remove them to keep your project organized. In this article, you will learn the step-by-step process to remove a package from Larave 2 min read Basic Linux Commands for day to day life Linux is a popular desktop, embedded, and server operating system that is strong and adaptable. Knowing the basics of commands will greatly increase your productivity and simplicity of use if you use Linux. Essential Linux commands that are useful for daily operations will be covered in this article 3 min read Top Laravel Interview Questions and Answers(2024) Laravel is a popular open-source PHP web framework known for its elegant syntax and powerful features. Developed by Taylor Otwell, it follows the MVC (Model-View-Controller) architectural pattern, making it easy to build web applications with clean and structured code. Laravel offers a wide range of 15+ min read Laravel | Migration Basics In Laravel, Migration provides a way for easily sharing the schema of the database. It also makes the modification of the schema much easier. It is like creating a schema once and then sharing it many times. It gets very useful when you have multiple tables and columns as it would reduce the work ov 4 min read How to upload Laravel App to Heroku Cloud Application Platform Prerequisites :Knowledge of PHP (Laravel)A Heroku user accountA basic knowledge of Git version control Setting up Heroku CLI: You can download Heroku CLI from here. We recommend you to view this article to install Heroku CLI. Creating a Laravel App: In order to create a laravel app goto your command 3 min read Introduction to Laravel and MVC Framework Laravel is a powerful PHP framework based on MVC (Model-View-Controller) architecture. The Laravel Framework is used to develop complex Web Applications. Laravel can help a developer to develop a secure web application. It is a Scalable framework and it also has a wide Community across the world. A 5 min read Like