Home / Snippets / How to Solve Laravel Could Not Open Input File: artisan
How to Solve Laravel Could Not Open Input File: artisan cover

How to Solve Laravel Could Not Open Input File: artisan

5.9K

2 years ago

0 comments

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
notion avatar

Ahabz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

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

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this