Please provide a valid cache path

前端 未结 20 806
一生所求
一生所求 2020-12-12 12:15

I duplicated a working laravel app and renamed it to use for another app. I deleted the vendor folder and run the following commands again:

composer self-up         


        
相关标签:
20条回答
  • 2020-12-12 12:58

    step 1 : php artisan storage:link

    step 2 : create these folders inside storage folder

    Ensure the below folders in storage directory:

    logs
    framework
    framework/cache 
    framework/sessions 
    framework/views
    

    It worked for me

    0 讨论(0)
  • 2020-12-12 12:59

    Check if the following folders exists, if not create these folders.

    • storage/framework/cache
    • storage/framework/sessions
    • storage/framework/testing
    • storage/framework/views
    0 讨论(0)
  • 2020-12-12 12:59

    I solved the problem when I created framework folder inside storage folder and its subfolders sessions, views and cache.

    Go to your cmd or terminal then type your project root path and after that type the following:

    cd storage
    mkdir framework
    cd framework
    mkdir sessions
    mkdir views
    mkdir cache
    

    Go to your project root path back again and run composer update

    After that artisan works perfectly.

    0 讨论(0)
  • 2020-12-12 13:03

    Your storage directory may be missing, or one of its sub-directories. The storage directory must have all the sub-directories that shipped with the Laravel installation.

    0 讨论(0)
  • 2020-12-12 13:04

    Issue on my side(while deploying on localhost): there was views folder missing.. so if you have don't have the framework folder the you 'll need to add folders. but if already framework folder exist then make sure all above folders i.e 1. cache 2. session 3. views

    exists in your framework directory.

    0 讨论(0)
  • 2020-12-12 13:06

    Try this:

    1. php artisan cache:clear
    2. php artisan config:clear
    3. php artisan view:clear
    0 讨论(0)
提交回复
热议问题