I don't know why you can't use validation_show_error('email');
The following code works as before after you run validation.
PHP Code:
if ($validation->hasError('username')) {
echo $validation->getError('username');
}
If you have code like this,
PHP Code:
if (! $this->validate($rules)) {
return redirect()->back()->withInput();
}
you are redirected after the validation fails.
In the next request, validation never run.
So you no longer can use $validation->getError() or hasError().
That is, if you don't redirect after the validation fails,
you can use $validation->getError() or hasError().