I need validate field before use model method in controller action
public function indexAction()
{
$data = $this->request->getJsonRawBody();
...
}
how validate $data->login ?
I need validate field before use model method in controller action
public function indexAction()
{
$data = $this->request->getJsonRawBody();
...
}
how validate $data->login ?