Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InvalidArgumentException Please provide a valid cache path Error laravel 5.2

I'm working with Laravel 5.2 and i have an error when i run composer update or artisan optimize ..

i've searched on my vendor, i didn't found compiled.php file ! i try to generate this i run the artisan optimize, i have the same error

[InvalidArgumentException]          
  Please provide a valid cache path

Script php artisan clear-compiled handling the post-update-cmd event returned with error code 1

how i can resolve this ?

like image 415
AiD Avatar asked Jan 21 '26 11:01

AiD


1 Answers

Please Try it:

create these folders under storage/framework:

  • sessions
  • views
  • cache

And also you can use this command to install:

sudo composer install

Its will be working.

like image 50
Md.Jewel Mia Avatar answered Jan 24 '26 02:01

Md.Jewel Mia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!