Skip to content

Instantly share code, notes, and snippets.

@Maras0830
Created December 23, 2016 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maras0830/502272c565d65ac97beb99dc47fa2586 to your computer and use it in GitHub Desktop.
Save Maras0830/502272c565d65ac97beb99dc47fa2586 to your computer and use it in GitHub Desktop.
Laravel53-passport-server/routes/api.php
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:api');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment