So I have users and companies. A user belongs to one company.
I want to validate a user registration so that the business_name field they use to registe
business_name
Never mind, managed to figure it out. Just needed an extra parameter to specify the column name:
'business_name' => 'required|unique:companies,name',