laravel services.json not created

后端 未结 2 1095
南方客
南方客 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: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

提交回复
热议问题