seancheung/history

Make the guards of auth configurable

ihipop opened this issue · 1 comments

the guard of backend admin is not the default one for front user ,they share the common code
so

public static function getUserID()
{
return auth()->check() ? auth()->user()->id : null;
}
only get the default guard for front user, make it not working for the users of backend admin