Laravel 5.6 Changelog Preview

Arun Yokesh
2 min readFeb 9, 2018

--

Laravel 5.6 brings vast improvements to new exciting features and here are some.

Middleware Rate Limit

You can specify rate limit on a group of routes or a middleware. the “throttle” is a key for rate limit. It helps to allow a certain number of requests for some period.

60 — Number of Requests, 1 — Minutes

Route::middleware(‘auth:api’, ‘throttle:60,1’)->group(function () {
Route::get(‘/user’, function () {
//
});
});

Collision

The Collision is a package maintained by Nuno Maduro. Laravel has integrated this package by default to all Laravel applications which provides beautiful error reporting when interacting with your Laravel application on the command line.

Argon2 Password Hashing

So far Laravel has used a bcrypt hashing algorithm to encrypt the passwords and stores on the database. But now supports password hashing via the Argon2 algorithm. The default hash driver for your application is controlled by a new config/hashing.php configuration file.

Broadcast Channel Classes

This feature overcomes the problem of using many channels. By using this php artisan make:channel ChannelNamecommand you can create a new class for Each Broadcast Channel.

Slack Logging

Laravel 5.6 brings vast improvements to Laravel’s logging system. now you can config the logging type config/logging.php configuration file. By configuring slack as the logging type. All logs will come up on your configured Slack channel. That’s so awesome!.

'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['syslog', 'slack'],
],
],

Bootstap 4

All front-end scaffolding such as the authentication boilerplate, example Vue components, Pagination view files and mail markdowns are upgraded to bootstrap 4.

API Controller Generation

To generate a resource controller for API that does not include create and edit methods, you may now use the --api switch when executing the make:controller command:

php artisan make:controller API/CategoryController --api

If you wont look the whole change log of Laravel 5.6 checkout this : Changelog (Github) or for upgrades here is the solution for that Upgrade Guide (Laravel).

--

--

Arun Yokesh
Arun Yokesh

No responses yet