AiD
AiD

Reputation: 1007

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 ?

Upvotes: 3

Views: 10500

Answers (1)

Md.Jewel Mia
Md.Jewel Mia

Reputation: 3441

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.

Upvotes: 15

Related Questions