Open iranwebpro opened 5 years ago
i used jwt.auth for authenticate and zizaco for authorization. when i use zizaco middlewares in api file, like bellow:
Route::group(['middleware' => 'jwt.auth'], function(){ Route::group(['prefix' => 'admin', 'middleware' => ['role:admin']], function() { Route::post('/category',['middleware' => ['permission:createcategory'], 'uses'=>'CategoryController@create']); }); });
i have a problem in test by postman:
i used jwt.auth for authenticate and zizaco for authorization. when i use zizaco middlewares in api file, like bellow:
Route::group(['middleware' => 'jwt.auth'], function(){ Route::group(['prefix' => 'admin', 'middleware' => ['role:admin']], function() { Route::post('/category',['middleware' => ['permission:createcategory'], 'uses'=>'CategoryController@create']); }); });
i have a problem in test by postman: