Issue
I have created a custom command called confirmUserCommand
with the filename matching the class name (same case). The $name is set to confirmuser
.
Running the command php artisan list
displays the new command on my local, but not on the server (which is running linux). I did perform a composer dump-autoload and update the relevant composer files to no avail.
Any suggestions please?
Solution
Just tore my hair out and found out the issue..
In order to list the artisan commands including the custom ones, you have to invoke the systems PHP CLI Intepreter specifically PHP call.
php artisan list
: would list all the commands as expected but not the custom commands you created
php-cli artisan list
: This would list the all commands including the custom commands created
Hope this helps someone and save their hair :)
Answered By - maximus 69
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.