src/Http/Controllers/AbstractController.php
protected function guessGuard(): string
    {
        $accessarea = str_before(Route::currentRouteName(), '.');
        $guard = str_plural(mb_strstr($accessarea, 'area', true));

        return config('auth.guards.'.$guard) ? $guard : config('auth.defaults.guard');
    }
protected function guessGuard(): string
    {
        $accessarea = str_before(Route::currentRouteName(), '.');
        $guard = str_plural(mb_strstr($accessarea, 'area', true));

        return config('auth.guards.'.$guard) ? $guard : config('auth.defaults.guard');
    }
protected function guessGuard ( ) : string { $ accessarea = str_before ( Route :: currentRouteName ( ) , '.' ) ; $ guard = str_plural ( mb_strstr ( $ accessarea , 'area' , true ) ) ; return config ( 'auth.guards.' . $ guard ) ? $ guard : config ( 'auth.defaults.guard' ) ; }
Guess guard from accessarea.

@return string
Guess guard from accessarea .