laravel-api-controller
laravel-api-controller copied to clipboard
Laravel Api Quickstart
if resourceModel is not changed from the empty / null state, an error occurs :`Error: Typed property Phpsa\LaravelApiController\Http\Api\Controller::$resourceModel must not be accessed before initialization in ... ` this fixes it

Would be handy to able to sue the toggle sync strategy through the API: https://laravel.com/docs/8.x/eloquent-relationships#toggling-associations