Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | protected function replaceUserNamespace($stub): string |
||
24 | { |
||
25 | if (! $userModel = config('auth.providers.'.config('auth.guards.'.config('auth.defaults.guard').'.provider').'.model')) { |
||
26 | return $stub; |
||
27 | } |
||
28 | |||
29 | return str_replace( |
||
30 | $this->rootNamespace().'User', |
||
31 | $userModel, |
||
32 | $stub |
||
33 | ); |
||
34 | } |
||
35 | } |
||
36 |