Laravel validation rule unique collection 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