Posts Learn Components new Snippets new Categories Tags 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

•

31 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
new

If you like our tutorial, do make sure to support us with some coffee. We need the juice to write the content during the night 🤙🏻