A New Laravel Blade Error Directive comes to Laravel 5.8.13

A New Laravel Blade Error Directive comes to Laravel 5.8.13

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:

// Before
@if ($errors->has('email'))
    <span>{{ $errors->first('email') }}</span>
@endif

// After:
@error('email')
    <span>{{ $message }}</span>
@enderror

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.

v5.8.13

Added

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

Fixed

Reverted


Filed in: News / Releases


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Full Stack or Back-End Developer
Alexandria, VA; Tallahassee, FL; Orlando, FL
Marketing for Change
Full Stack Software Engineer
Atlanta, GA or Remote
Voxie
Laravel/PHP Developer
Chicago, IL
Neon One
Software Engineer, Web Applications
Vaughan, ON, Canada
Blast Motion
Contract Services Software Engineer (Laravel | Vue | Tailwind)
Remote
Riverbed Technology
Senior Laravel Developer
Wilmington, NC
GE Software Inc.
Senior Full Stack Developer (PHP | Vue | DDD)
Charleston, SC
MassageBook