Issue
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.
Solution
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
Answered By - Manzurul Hoque Rumi
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.