Hi I have a problem in laravel 5 existing validation.
In my controller and request.
class PostEmailRequest extends Request{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'email' => 'required|max:255',
];
}}
It will return the validation of an email as an example. What I want to do with my angularjs is I want to catch validation and fetch it on my front-end form. It will not reload the page. Do you have any idea about this one?
Form from my application will send data through angularjs. $http post url "app/postPage" and if it has an error above my code will $validation->messages() will send to my angularjs.
catch and fetch
mean? Question is not very clear. Please be more specific what you are exactly trying to do. – Signboard