See more
Please note: The config is written with a heredoc, if you copy/paste just the config be sure to remove the escaped $ (the \$).
Route::group(['middleware' => 'auth:api'], function(){Route::post('details', 'API\UserController@details');