-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi! Thanks for this great tool, it's being very useful!
I need to change the naming convention ('model' and 'model.property') for keys into the generated code, ie. current:
public function rules()
{
return [
'**role**' => 'array|required',
'**role**.name' => 'required|string'
];
}
public function attributes()
{
return [
'**role**.name' => 'the role\'s name'
];
}
ie. desired:
public function rules()
{
return [
'**name**' => 'required|string'
];
}
public function attributes()
{
return [
'**name**' => 'the role\'s name'
];
}
in order to be able to POST/PATCH the properties without the model wrapper but I can't find where are those lines generated. Could you please point me in the right direction?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels