laravel

could not open input file artisan

IF you are getting an error message like “could not open input file artisan” while running a command php artisan make:controller ListController in Laravel then I have simple solution based on my experience.

Initially, I had created a folder “services” under D:\xampp\htdocs\allure\ and I created a Laravel project services inside services folder. I forgot and ran the command “php artisan make:controller ListController” resulting error message as “could not open input file artisan” like shown below

could not open input file artisan
could not open input file artisan

Solution to this problem is simple, its just run a command to enter to the folder created by Laravel ie run command cd project-name in my case its cd services and run the command php artisan make:controller ListController again. See the result as below

solve could not open input file artisan
solve could not open input file artisan

Leave a Reply

Your email address will not be published. Required fields are marked *