chantouchlaravel-jwt | laravel jwt redis
ThispackageallowsJWT-authenticateduserstobestoredandmanagementinRediswiththeirroles,permissions,statusesandanythingyouwant.Also,thispackagehasanobserverforlisteningandupdatingtoyourusermodelonRedis.Thisobserveristriggeredwhenyouassignroles&permissionstouser,orupdateanddeletetoyourusermodel.RequirementsThispackageworkwithtogetherphp-open-source-saver/jwt-auth:[1]andspatie/laravel-permission[2]packageunderthehood.Makesuretoinstallandconfigurethesedependencies.Youmustpublish,migrateetc.allp...
This package allows JWT-authenticated users to be stored and management in Redis with their roles, permissions, statuses and anything you want.
Also, this package has an observer for listening and updating to your user model on Redis. This observer is triggered when you assign roles & permissions to user, or update and delete to your user model.
RequirementsThis package work with together php-open-source-saver/jwt-auth:[1] and spatie/laravel-permission[2] package under the hood.
Make sure to install and configure these dependencies. You must publish, migrate etc. all packages.
Installation composer require chantouch/laravel-jwt-redisOnce this has finished, you will need to add&change these values in .env file:
CACHE_DRIVER=redis REDIS_CLIENT=predisNext, you will need to change the guards and providers arrays in your config/auth.php config as follows:
<?php retu...