celsonery /
db-sync
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Http\Requests; |
||
| 4 | |||
| 5 | use App\Models\User; |
||
| 6 | use Illuminate\Foundation\Http\FormRequest; |
||
| 7 | use Illuminate\Validation\Rule; |
||
| 8 | |||
| 9 | class ProfileUpdateRequest extends FormRequest |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Get the validation rules that apply to the request. |
||
| 13 | * |
||
| 14 | * @return array<string, \Illuminate\Contracts\Validation\Rule|array|string> |
||
| 15 | */ |
||
| 16 | public function rules(): array |
||
| 17 | { |
||
| 18 | return [ |
||
| 19 | 'name' => ['required', 'string', 'max:255'], |
||
| 20 | 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)], |
||
|
0 ignored issues
–
show
|
|||
| 21 | ]; |
||
| 22 | } |
||
| 23 | } |
||
| 24 |
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.