You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument 1 passed to Dingo\Api\Exception\InternalHttpException::__construct() must be an instance of Illuminate\Http\Response, instance of Illuminate\Http\RedirectResponse given, called in vendor/dingo/api/src/Dispatcher.php on line 543 and defined #998
I am trying to make and internal request but it ends with this error
Argument 1 passed to Dingo\Api\Exception\InternalHttpException::__construct() must be an instance of Illuminate\Http\Response, instance of Illuminate\Http\RedirectResponse given, called in /var/www/htr/api/vendor/dingo/api/src/Dispatcher.php on line 543 and defined
here is my routes.php
$api->version('v1', ['middleware' => 'guest', 'protected' => false], function ($api) {
$api->group(['prefix' => 'v1',], function ($api) {
$api->post('register', '\App\Http\Controllers\APIs\ApiAuthController@register');
});
});