A New Laravel Blade Error Directive comes to Laravel 5.8.13


April 19th, 2019


Laravel 5.8.13 was released yesterday with a new @error Blade directive and a revert of the “in” and “not in” query builder feature added in Laravel 5.8.12.

Laravel Blade Error Directive

First, a new Blade @error directive was added by Caleb Porzio:

1// Before
2@if ($errors->has('email'))
3 <span>{{ $errors->first('email') }}</span>
6// After:
8 <span>{{ $message }}</span>

Custom Doctrine DBAL Types

Next, it’s now possible to register custom Doctrine DBAL types in the schema builder. Check out PR #28214 for more details.

This release reverted the in and not in query builder operators introduced in Laravel 5.8.12 because of an issue with wherePivot(). See commit 04a547ee for further details.

Users should upgrade from 5.8.12 to 5.8.13 to avoid the potential issues introduced by the new operators in 5.8.12.

You can see the full list of fixes below, and the whole diff between 5.8.12 and 5.8.13 on GitHub. The full release notes for Laravel 5.8 are available in the GitHub 5.8 changelog.



  • Added @error blade directive (#28062)
  • Added the ability to register custom Doctrine DBAL types in the schema builder (#28214, 91a6afe)



Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.

Laravel News Partners