Welcome Guest, Not a member yet? Register   Sign In
public $filters except login page
#3

You need to add condition inside AuthFilter, I do it like this
PHP Code:
// get the current URL path, like "auth/login"
$currentURIPath "/{$request->uri->getPath()}";

// check if the current path is auth path, just return true
// don't forget to use named routes to simplify the call
if (in_array($currentURIPath, [route_to('auth'), route_to('api.auth.login')])) {
    return;

I hope this can help.
Reply


Messages In This Thread
public $filters except login page - by cilux - 03-28-2020, 03:08 PM
RE: public $filters except login page - by fsevenm - 04-03-2020, 05:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB