Level 1
Sorry, found out that our clients made a mistake on the second one ... please ignore that , cannot edit this somehow , not showing me the full content of the body ...
Hi:
Sorry for the terrible title , so basically I am trying to do validation on the request coming in, here, this do not work telling me that class company do not exist, and so I tried: Company, companies,Companies, Companys,companys , but all to no avail ...
$this->validate($request, [
'company_id' => 'required| exists: company,id',
and here :
[
'data.*.first_name' => 'required',
]
it tells me that data.first_name.first_name cannot be empty, but it should detect the * as array index only ... Anyone have any idea ? Thanks
Please or to participate in this conversation.