Is there a way to easily rename a key in an associative array without extra complexity?
for example
public function rules()
{
return [
'candidateID' => 'required|number', **as candidate_id**
'note' => 'required|string',
];
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/34HWfEQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire