Summer Sale! All accounts are 50% off this week.

graffislife's avatar

file_put_contents(directory): failed to open stream: no such file or directory

So me and my friend is making this project. Then I gave him my file of laravel. He is having this error. I believe because it is my directory. How can we fix this? We already tried the following :

php artisan cache:clear 
chmod -R 777 app/storage (specified not found)
composer dump-autoload
Thank you in advance.
0 likes
5 replies
tykus's avatar

For Laravel 5.x, there is no app/storage directory; it was there in Laravel 4. The storage directory is in the project root now.

tykus's avatar

Laravel 5.4 is Laravel 5.x - x being "a value not yet known"

Anas_Haddar's avatar

Try this in your command composer require laravel/passport

Please or to participate in this conversation.