Lets Have a Quick Recap on Laravel 5.2

Let’s-Have-a-Quick-Recap-on-Laravel-5-2.jpg

Being one of the most demanding frameworks in the PHP fraternity, Laravel is used for rapid application development. Last year, it introduced a new version, Laravel 5.2 featuring a useful bunch of tested functionalities which were lacking in its old versions. Now a lot of people think that Laravel is a creature by Taylor Otwell, but the fact is that there are more people contributing to the framework at present. One of them is Mohamed Said from Egypt, who shared the news about new features in 5.2.22. He says the latest version is backed with some other technical improvements like multiple authentication driver support, simplified eloquent and impact model binding etc.

Here we go,

Authentication scaffolding- Today, almost every website have the functionality of account registration, user profile creation, user dashboard and user memorization features. Implementing all these functionalities is a tedious task for any Laravel developer. The Laravel development feature makes it simple to handle the authentication on the back-end and provides the lightning-fast way to scaffold the authentication views for front-end. You can use ‘make:auth’ command to execute the authentication scaffolding function.

Laravel cashier

This offers a fluent subscription billion solutions. The version handles almost all boilerplate subscription- -billing codes. Along with the basic subscription management, Laravel Cashier can also handle coupons, swapping subscription, subscription “quantities”, cancellation grace periods, and even generate invoice PDFs. Laravel 5.2 supports stripe and Braintree payment gateway.

Socialite

Socialite is a laravel 5.2 feature that allows users log in using their Facebook account. In fact, it may quite interest you to know that applying this socialite authentication technique with other social networks like Twitter, Gmail can be considered as a smart move. Laravel 5.2 offers easy authentication with OAuth using Socialite. Laravel Socialite officially supports authentication with Facebook, GitHub, Google, Twitter, and Bitbucket.

Array validation

Another excellent feature that provides a bunch of different approaches to validate the incoming data. Form Request Validation is one of those approaches that make complex form validation process easy. You can add validation rules to loop through incoming arrays and automatically get the data validated using single validation rule.

Server monitoring

With Laravel 5.2, server-monitoring package for monitoring the disk usage, HTTP ping monitors, and SSL certificate monitors. Server Monitoring Commands also provides an alarm status notification.

MySQL JSON column types

MySQL 5.7.8 has added the support for a native JSON data type. It allows the access of data in JavaScript Object Notation documents and also performs the automatic validation. Laravel 5.2 has added the support for this column type.

API rate limiting

Rate limiting is a tool that is generally used to limit the rate at which any individual can request. It is generally used in API. Unfortunately, with 5.1, Developers were forced to use 3rd party libraries or packages to get this feature. The good news is that it is default functionality now in Laravel 5.2. It generates different status codes (i.e. 200 – OK or 429 – too many requests) based on the limiting value.  

So that’s all for now! Keep watching the space to know more!