DEV Community

Making a custom Artisan Command in Laravel 5.4

Nkere-Awaji Inwan on August 16, 2017

There are several default artisan commands that come with laravel, the common ones are php artisan serve,php artisan migrate, php artisan make:migr...
Collapse
 
azazqadir profile image
Muhammad Azaz Qadir

I love artisan commands. You can use PHP artisan create table command to quickly create table for database. Artisan commands has made coding for laravel developers easy.

Collapse
 
florianmuellerch profile image
florianmuellerCH

Here we are in 2020 and your gif in 2017 was already practicing social distancing. Clearly you knew what would come.

Nice post btw! Helped me a lot to get into creating commands :)

Collapse
 
backendcoding profile image
backendcoding

I have been trying to find this out. Maybe you can help me. I was wanting to know do you have to remake these commands for different projects or new projects that you make?

Collapse
 
enkaypeter profile image
Nkere-Awaji Inwan

Yeah you have to. If you check the list of artisan commands using php artisan list, the custom command you make for project A won't be visible in project B.In other words, The commands are project specific