Emmanuel-Mariki

Results comments of Emmanuel-Mariki

Thanks @KolevDarko i managed to get it done using your approach

`php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\JWTAuthServiceProvider"` gives ``` [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider' not found ```

changed Class `'Tymon\JWTAuth\Providers\JWTAuthServiceProvider'` to `Tymon\JWTAuth\Providers\LaravelServiceProvider::class,` acording to [this comment](http://stackoverflow.com/questions/35476045/tymon-jwtauth-class-not-found) but i ended up with ``` InvalidArgumentException in AuthManager.php line 99: Auth guard driver [api] is not defined. ``` The api...

There is so much BS going on with this implementation, and none of the above suggestion worked for me loading alternative options...................

@yopbot could you be more specific where does the = goes however i tried the other way ``` > $permissions = $request->input('permissions'); > //$role->attachPermission($permissions); doesn't work > $role->perms($role->id)->sync($permissions); //This work...

Got it now! @yopbot there are two methods one for attaching one permission and the other for attaching multiple permissions.