Replies: 3 comments 3 replies
-
If you need to implement your own filter, see the existing filter. See |
Beta Was this translation helpful? Give feedback.
-
As @kenjis noted this library already comes with filters, and it looks like what you are trying to do just duplicates the existing Session filter. Change your routes to use the library's package and you should be good: - $routes->group('/admin', ['filter' => 'auth'], static function ($routes) {
+ $routes->group('/admin', ['filter' => 'session'], static function ($routes) { |
Beta Was this translation helpful? Give feedback.
-
No need to modify the filter to adjust where you go during login - you can use the loginRedirect method in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to achieve this but cannot seem to ...
Something like;
And in Auth.php filter:
Beta Was this translation helpful? Give feedback.
All reactions