laravel unique validation when updating record
I'm using Laravel for my web application and have a 'mobile' field that I want to update. I'm using the following validation rule: 'mobile' => ['required', Rule::unique('operators')->ignore(/* unsure what to put here */)] I want to update the mobile number,…