Exception if no attributes are given in create or update request
Request:
Updating ips to API
{"data":{"id":"57546429-9b4e-4545-a8a1-783188df0c22","type":"ips"}}
Error:
[2017-03-17 12:44:22] local.ERROR: exception 'ErrorException' with message 'Argument 1 passed to Illuminate\Database\Eloquent\Model::fill() must be of the type array, null given, called in /var/www/netmon-api-server/vendor/netmon-server/laravel-jsonapi/src/Traits/StoreResourceTrait.php on line 205 and defined' in /var/www/netmon-api-server/bootstrap/cache/compiled.php:10543
Stack trace:
#0 /var/www/netmon-api-server/bootstrap/cache/compiled.php(10543): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(4096, 'Argument 1 pass...', '/var/www/netmon...', 10543, Array)
#1 /var/www/netmon-api-server/vendor/netmon-server/laravel-jsonapi/src/Traits/StoreResourceTrait.php(205): Illuminate\Database\Eloquent\Model->fill(NULL)
#2 [internal function]: Netmon\JsonApi\Http\Controllers\DefaultResourceController->update(Object(Illuminate\Http\Request), '57546429-9b4e-4...')
#3 /var/www/netmon-api-server/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#4 /var/www/netmon-api-server/bootstrap/cache/compiled.php(9611): Illuminate\Routing\Controller->callAction('update', Array)
#5 /var/www/netmon-api-server/bootstrap/cache/compiled.php(8665): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Netmon\Networking\Http\Controllers\IpsController), 'update')
#6 /var/www/netmon-api-server/bootstrap/cache/compiled.php(8646): Illuminate\Routing\Route->runController()
#7 /var/w