I wrote feature test for a resource that includes index and single resource. I defined readonly() on it route. For example: $server->resource('transactions', '\\'.JsonApiController::class)->readonly();. When i run test I have got 500 error beacuse there is exception handleing in this file when user not authorized to view that resource.
src/Http/Controllers/Actions/FetchOne.php in line 46;
I wrote feature test for a resource that includes index and single resource. I defined
readonly()
on it route. For example:$server->resource('transactions', '\\'.JsonApiController::class)->readonly();
. When i run test I have got 500 error beacuse there is exception handleing in this file when user not authorized to view that resource.src/Http/Controllers/Actions/FetchOne.php
in line 46;Thank for your attention.