laravel services.json not created

后端 未结 2 1094
南方客
南方客 2021-02-10 13:56

Sometimes my services.json is missing after running composer update or php artisan clear-compiled.

I checked the permissions and e

相关标签:
2条回答
  • 2021-02-10 14:36

    Just run a php artisan serve and stop, this will create the services.json file.

    0 讨论(0)
  • 2021-02-10 14:39

    Ensure your web server has access to the files/folders specifically app/storage/meta/services.json if this file/folder is not there create it and add some json to see if you can accesss it in the browser. If forbidden/denied see permissions below:

    Check you have these folders

    app/storage/views
    app/storage/logs
    app/storage/sessions
    

    Set everything to be read/write

    chmod -R 777 /app/storage
    

    Create services.json and add the following

        {
            "providers": []
        }
    

    After creating the above try loading the project or php artisan serve

    0 讨论(0)
提交回复
热议问题