close

[Solved] php artisan: “failed to open stream: No such file or directory”

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error php artisan: “failed to open stream: No such file or directory” in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How php artisan: “failed to open stream: No such file or directory” Error Occurs?

Today I get the following error php artisan: “failed to open stream: No such file or directory” in php.

How To Solve php artisan: “failed to open stream: No such file or directory” Error ?

  1. How To Solve php artisan: “failed to open stream: No such file or directory” Error ?

    To Solve php artisan: “failed to open stream: No such file or directory” Error you don't have vendor folder in you project you need to re-install laravel & then try install it using

  2. php artisan: “failed to open stream: No such file or directory”

    To Solve php artisan: “failed to open stream: No such file or directory” Error you don't have vendor folder in you project you need to re-install laravel & then try install it using

Solution 1

You have done everything correctly except you forget to add the vendor folder into your project directory, just try

 composer i 

Inside the project directory from the terminal, will solve your error. And if you get any other error then remove the composer.lock file and then try again.

UPDATE:

Instead of deleting the composer.lock file when facing issues like PHP version mismatch or dependency version locked just use

composer update

Solution 2

you don’t have vendor folder in you project you need to re-install laravel & then try install it using

laravel new project or composer create-project ---prefer-dist laravel/laravel blog

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment