Tag Archives: laravel artisan command

Laravel create model migration and controller in a single command

Hello guys, sometimes while working on the large application, we need to create some very small modules like simple CRUD. So here in this article i will let you know laravel create model migration and controller in a single command. We will run a single artisan command to create model. migration and controller. We can also create resource… Read More »

How to create custom artisan command in laravel with example

Artisan commands are something like magic for laravel applications. It is an awesome command line feature of laravel. Laravel provides number of artisan commands to use. Difficult and time consuming tasks can be easily done by these laravel artisan commands. But in this tutorial we will create our own custom artisan command in laravel and elaborate it with… Read More »

How to execute laravel artisan command from a route or controller

We generally execute laravel artisan command from terminal for installing new packages, generate migrations, create crontroller, models etc. But some times we need to execute artisan command dynamically from specific route or from a particular event. So here we will learn to execute artisan command from route. To do this we will use Laravel’s Artisan facade. Artisan facade… Read More »