laravel-ban icon indicating copy to clipboard operation
laravel-ban copied to clipboard

Laravel API Middleware useage

Open kevinwaxi opened this issue 3 years ago • 1 comments

I have tried to include the middleware provided by the package. I have been back and forth trying to restrict banned users from logging in. Any solution to this or what am I required to do? I simply wanted users who are currently logged in to be logged out

kevinwaxi avatar Jun 16 '22 17:06 kevinwaxi

What issue you have with default middleware? Any errors? Just add logs-out-banned-user middleware to protected routes and logged in users will be forced to log out.

antonkomarev avatar Jun 16 '22 19:06 antonkomarev