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

Remote PHP / Laravel Developer
Remote
SpringboardVR
Senior PHP/Laravel Developer: Your Dream Work Environment
Remote
iPhone Photography School
Senior Laravel Developer
Leidseplein, Amsterdam
Orderchamp.com
PHP Developer
Remote
X-Team
Senior Laravel Developer (Canada and India)
London, Ontario, Canada
Factory Bucket Inc.
Laravel, PHP, PostgreSQL, Neo4J Developer
Pune, India (intern in Denver, CO)
Life AI
Senior Laravel Developer - Cloud based SaaS product (New Zealand based)
Auckland city
Figured Limited