Laravel, inject error message to errors object

In the controller this is how.

    $errors = $validator->messages();
    $errors->add('Error','Custom Error');

http://stackoverflow.com/questions/23466773/inject-an-error-message-to-errors-object

Leave a Reply

Your email address will not be published. Required fields are marked *


*