Posts Learn Components Snippets Categories Tags Tools About
/

How to Solve Laravel Could Not Open Input File: artisan

Learn how to solve could not open input file artisan in Laravel and get this command executable and runnable for your Laravel project

Created on Oct 05, 2021

5892 views

Learn how to solve could not open input file artisan in Laravel project.

Make sure you are in the project root directory


One of the common mistakes that user faces when running the "artisan" command is getting this error and the main cause is that they are not within the project root directory. So whenever you are running this command, you need to be in the project root directory where the "artisan" executable is placed on.

Make artisan executable


Another possible way to fix this error is to make the "artisan" executable if it's not already. To update this you can run the chmod command and it will be like below.
chmod +x artisan

If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️

)