You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following request validation: 'email' => 'required|email|unique:users,email,' . auth()->user()->id
What it does is it allows updating the users email address, while ensuring a unique email, but also if the same email(the users email in the table) is being sent then mark it as fine.
The scramble error is because of the auth()-user()-id part: Cannot generate request documentation: Attempt to read property "id" on null
The text was updated successfully, but these errors were encountered:
I have the following request validation:
'email' => 'required|email|unique:users,email,' . auth()->user()->id
What it does is it allows updating the users email address, while ensuring a unique email, but also if the same email(the users email in the table) is being sent then mark it as fine.
The scramble error is because of the auth()-user()-id part:
Cannot generate request documentation: Attempt to read property "id" on null
The text was updated successfully, but these errors were encountered: