Reputation: 21
I'm getting IDE errors of the following type:
Here's the code:
$user_input = $request->only(["name", "email", "password"]);
$profile_input = $request->except(["name", "email", "password", "password_confirmation"]);
but when I used it, my postman gave an error:
Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 1364 Field 'last_name' doesn't have a default value (Connection: mysql, SQL: insert into `profiles`
So the code seems correct, just intelephense provides incorrect validation result in my IDE (Visual Studio Code).
Upvotes: 2
Views: 158