Last active
March 21, 2018 07:31
-
-
Save NazmusShakib/fbca57d38dd1f354e19f27f991d1ed9e to your computer and use it in GitHub Desktop.
Laravel 5.6 jwt routing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::post('signup', 'AuthController@register'); | |
Route::post('login', 'AuthController@login'); | |
Route::group(['prefix' => 'auth', 'middleware' => 'jwt.auth'], function () { | |
Route::get('user', 'AuthController@user'); | |
Route::post('logout', 'AuthController@logout'); | |
}); | |
Route::middleware('jwt.refresh')->get('/token/refresh', 'AuthController@refresh'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment