| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function store(Request $request): RedirectResponse |
||
| 32 | { |
||
| 33 | $request->validate([ |
||
|
|
|||
| 34 | 'name' => 'required|string|max:255', |
||
| 35 | 'email' => 'required|string|lowercase|email|max:255|unique:'.User::class, |
||
| 36 | 'password' => ['required', 'confirmed', Rules\Password::defaults()], |
||
| 37 | ]); |
||
| 38 | |||
| 39 | $user = User::create([ |
||
| 40 | 'name' => $request->name, |
||
| 41 | 'email' => $request->email, |
||
| 42 | 'password' => Hash::make($request->password), |
||
| 43 | ]); |
||
| 44 | |||
| 45 | event(new Registered($user)); |
||
| 46 | |||
| 47 | Auth::login($user); |
||
| 48 | |||
| 49 | return redirect(route('dashboard', absolute: false)); |
||
| 50 | } |
||
| 52 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.