mercredi 11 avril 2018

The HTTP status code \"-1\" is not valid

I'm adding a new route on a legacy Laravel application, like this:

Route::group(['prefix' => 'business-user', 'middleware' => ['jwt.auth']], function () {
    Route::post('/', 'UserController@store');
});

Which leads to this:

/**
 * Store a newly created resource in storage.
 *
 * @param \Illuminate\Http\Request $request
 *
 * @return \Illuminate\Http\Response
 */
public function store(StoreBizUserRequest $request)
{
    dd($request);
    $user = $this->userService->store( $request );

    return $this->buildItemResponse( $user, new UserTransformer() );
}

However, I'm getting this on postman:

The HTTP status code \"-1\" is not valid

It throws exception before the dd.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire