I'm building a CRM inside Laravel 5.3. I have a
rule
ClientRequest
rules
'company_name' => 'required|unique:clients',
'company_name' => 'required|unique:clients,company_name,{$this->client_uid},client_uid',
client_uid
PATCH
client_uid
client_uid
Try making your single quotes, double quotes. If you're using single quotes it will not recognize the $this->client_uid
as php.
'company_name' => "required|unique:clients,company_name,{$this->client_uid},client_uid"
Another optie could be (but I prefer the above):
'company_name' => 'required|unique:clients,company_name,'.$this->client_uid.',client_uid'