Laravel could not open input file artisan
How we fix it : -
This is a very common error message that a Laravel user gets.
Now let’s see why does this error appears.
1. Wrong console location
This error mainly occurs when a user tries to open a Laravel project outside the project folder. Laravel can only execute the project if we open it inside the project folder.
That is what the error says ‘could not open input file‘. So whenever customers approach us with this error, we ask the customer to re-check the location where they execute the command.
2. Improper permissions of artisan
Sometimes the artisan may not be executable. If the user tries to execute the command, it cannot access it. And the user receives this error.
So to make artisan executable, we use the command
chmod +x artisan
Later try to use the command, and it will work.
Comments
Post a Comment