Reputation: 121
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
Reputation: 3104
At first run: composer update
Create these folders under storage/framework:
and run this below commands:
Upvotes: 2