mixin role and config url

This commit is contained in:
saeid_01
2019-04-24 10:43:43 +04:30
parent d23c5f134b
commit df660dd7d4
24 changed files with 3430 additions and 3360 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ Route::group(['namespace' => 'Api'],function () {
Route::get('/getInfo', function () {
return response()->json([ 'user' => auth('api')->user() ], 200);
return response()->json([ 'user' => auth('api')->user(), 'roles' => auth('api')->user()->getRoleNames() ], 200);
})->middleware('auth:api');
Route::resource('TestTypes', 'TestTypeController');