Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Route::group(['prefix' => '/user', 'middleware' => 'auth:api'], function (){
Route::get('/', function (Request $request) {
return $request->user();
Route::get('/facebook_information', function (Request $request) {
return "Hello " . $request->user()->name . " got Facebook information!";
Route::get('/facebook_github_information', function (Request $request) {
return "Hello " . $request->user()->name . " got Facebook&GitHub information!";
Route::get('/facebook_twitter_information', function (Request $request) {
return "Hello " . $request->user()->name . " got Facebook&Twitter information!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.