laravel unique field with another code example
Example 1: laravel unique validation on multiple columns
'mobile_no'
=> 'unique:users,mobile_no,NULL,id,country_id,'.request('country_id');
Example 2: laravel rule unique where
'required|email|unique:company_users,email_address,NULL,id,company_id,' . $request->company_id