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.
- Install Laravel.
- 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
413 Request Entity Too Large - File Upload Issue
PHP Regular Expression for Strong Password Validation
What Are .Tpl Files? PHP, Web Design
In PHP, How to Extract Multiple E-Mail Addresses from a Block of Text and Put Them into an Array
Notice: Undefined Offset: 0 In
Improve Password Hashing with a Random Salt
PHP Using Preg_Replace:"Delimiter Must Not Be Alphanumeric or Backslash" Error
How to Remove Attributes from an HTML Tag
Laravel 4: How to "Order By" Using Eloquent Orm
How to Compress/Decompress a Long Query String in PHP
Xmlparseentityref: No Name' Warnings While Loading Xml into a PHP File
Php, Get Tomorrows Date from Date
How to Decrypt a Password Hash in PHP
PHP Return 500 Error But No Error Log
Difference Between PHP Echo and Return in Terms of a Jquery Ajax Call