Laravel5 shifts to 5.1 with many fantastic changes anew

Beautiful codes crafted to fit in the purpose of developers who have an intense urge for creating faultless websites rapidly, are what Laravel as a platform signifies. From its date of introduction, way back in 2011 Laravel has undergone many updates. Each addition contributed to its flexibility and made it robust in all facets. Just a week before Laravel 5 features have been extended to improve its performance, and the new version is titled as Laravel 5.1. Let us check out some vital modifications made to Laravel 5 that can assist a Laravel development company in multiple ways.

Event broadcasting

In Laravel5.1 programmers can find a new tool for broadcasting events out to Pusher.com. Instead of Pusher.com, developers can resort to the Redis based Socket.io too. Pusher.com and Socket make use of web sockets to establish a connection with the user’s web browser directly. It enables programmers to push an event straightly to the user instead of reloading a page many times. The 5.1 version comes out with a Should Broadcast interface and a much refined Broadcast On method for adding the flexibility of broadcasting events.

Passing of parameters to Middleware

One of the main difficulties that occurred while using Laravel 5 was the passing of parameters to the Middleware. The route filters in Laravel 5 were not well set to handle the passing of parameters to Middleware. With the modifications done to the base codes, Laravel 5.1 has been improved to take parameters passed to the Middleware as well.

New improved Artisan commands

Artisan commands were added to the directory of Laravel to ease the functionality of every application and its interactivity. It is all out of the box commands which increase the flexibility of this platform while developing applications. Still the creation of arguments and calling of complex methods with operators was a tedious task for programmers with older versions of Laravel. Now Laravel 5.1 has simplified syntax which allows programmers to create commands, progress bars, as well as tables very easily.

Blade Service Injection

Programmers had to create separate View Composers for injecting objects into the blade templates, while using Laravel 5. In Laravel 5.1, developers can easily inject an object into the line of codes of Blade templates. Then the codes look nice, crisp, and more understandable.

Source Link: http://agriyaservices.blogspot.in/2015/08/...

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!