Could Not Open Input File: Artisan

laravel Could not open input file: artisan (5.3)

Not figure out what actual problem is but what i did is deleted laravelDemo folder and run above command and it worked.

i have also tried composer update --no-scripts which will updated all the composer dependencies successfully.

May be there were some issue in installing the project.

php artisan horizon:install returns Could not open input file: artisan

Laravel Horizon is dashboard for managing queues (jobs) in Laravel that supposed to be installed on top of Laravel project.

Based on your directory structure you installed Horizon from composer alone. Now you are trying to run command "php artisan horizon:install" but artisan is a tool from Laravel.
"horizon:install" supposed to copy all assets, configs etc to Laravel project - but again, you do not have any so there is not even where to copy it.

To summary.

  1. Install Laravel.
  2. Install Laravel Horizon.

Github action could not open input file: artisan

The reason why you are getting that error message is because the php artisan command is not executed in proper directory. You have to make it so that it runs inside of the project folder and not above it.

So if you have a project called /laravel-project

You must get inside that directory and run php artisan key:generate

and not like this

mkdir laravel-project
php artisan key:generate

Could not open input file: artisan when running php artisan serv

Please run proper command on laravel project root directory:

php artisan serve


Related Topics



Leave a reply



Submit