adahox_
adahox_

Reputation: 121

problem with laravel when run composer install

i have a laravel project on my github. and i recently cloned to my pc but for some reason i got this error:

Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover

In Compiler.php line 36:

Please provide a valid cache path.


Script @php artisan package:discover handling the post-autoload-dump event 
returned with error code 1

I created cache, sessions and framework folder inside storage folder but it does not work.

I also tried many things I read on forums and here on stack but nothing works with me.

i really don't know what's happening.

Upvotes: 1

Views: 2161

Answers (1)

Manzurul Hoque Rumi
Manzurul Hoque Rumi

Reputation: 3104

At first run: composer update

Create these folders under storage/framework:

  • sessions
  • views
  • cache

and run this below commands:

  • php artisan cache:clear
  • php artisan config:clear
  • php artisan view:clear

Upvotes: 2

Related Questions