Posted: 03-02-2018

Laravel 5.6 what's new

Laravel 5.6 what's new

Laravel 5.6 is out.

Official laravel 5.6 release note here.


Laravel 5.6 requires PHP 7.1.3 or higher.

The Artisan Optimize Command will be removed.

The Artisan optimize command deprecated in theof 5.5, will be removed from 5.6.

With recent improvements to PHP op-code caching, the optimize Artisan command is no longer needed. You should remove any references to this command from your deployment scripts as it will be removed in a future release of Laravel.


New Blade Directives

Laravel 5.6 has  two new form blade directives



Argon2i Password Hashing Algorithm Support

The Argon2i password hashing support will be supported by Laravel 5.6 (require php 7.2).
The old style of bcrypt by the way remain the default.

For more info about Argoin2i in php 7.2 see  this  article  on zend

Collision Package for CLI Error Reporting

Laravel 5.6 will now come with Collision preinstalled as a dev composer dependency.

Collision was created by, and is maintained by Nuno Maduro, and is an error handler framework for console/command-line PHP applications.

More info about Collision are availiable on github


Bootstrap 4

All front-end scaffolding such as the authentication boilerplate and example Vue component have been upgraded to Bootstrap 4. By default, pagination link generation also now defaults to Bootstrap 4.

Date Casting

Now it's possible to customize the format of Eloquent date and datetime casting:

protected $casts = [
   'sign_up_date' => 'date:Y-m-d',>
   'last_activity_at' => 'datetime:Y-m-d H:00',