laravel unique rule additional parameter code example
Example: laravel rule unique where
'required|email|unique:company_users,email_address,NULL,id,company_id,' . $request->company_id
'required|email|unique:company_users,email_address,NULL,id,company_id,' . $request->company_id