get('/user', function (Request $request) { return $request->user(); }); Route::group(['middleware' => 'auth:api'], function(){ Route::resource('/account', 'AccountController'); });