Conditions | 2 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public static function getGuardClassName(): string |
||
15 | { |
||
16 | $guard = Config::get('auth.defaults.guard'); |
||
17 | |||
18 | return collect(config('auth.guards')) |
||
19 | ->map(function ($guard) { |
||
20 | if (! isset($guard['provider'])) { |
||
21 | return; |
||
22 | } |
||
23 | |||
24 | return config("auth.providers.{$guard['provider']}.model"); |
||
25 | })->get($guard); |
||
26 | } |
||
27 | } |
||
28 |