搜索
系统检测到您的用户名不符合规范:

Laravel 5 shifts to 5.1 new features

浏览:674 发布日期:2015年08月25日 分类:技术分享 关键字: laravel, laravel 5.1, laravel 5.0, new features of laravel 5.1, laravel 5.1 features

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/laravel-5-shifts-to-51-with-many.html
最佳答案
评论() 相关
后面还有条评论,
评论支持使用[code][/code]标签添加代码
您需要登录后才可以评论 登录 | 立即注册
收藏
leenajose
积分:106 等级:LV1
热点推荐
(追記) (追記ここまで)
最新更新

我们

合作

网站

信息

ThinkPHP 是一个免费开源的,快速、简单的面向对象的 轻量级PHP开发框架 ,创立于2006年初,遵循Apache2开源协议发布,是为了敏捷WEB应用开发和简化企业应用开发而诞生的。ThinkPHP从诞生以来一直秉承简洁实用的设计原则,在保持出色的性能和至简的代码的同时,也注重易用性。并且拥有众多的原创功能和特性,在社区团队的积极参与下,在易用性、扩展性和性能方面不断优化和改进,已经成长为国内最领先和最具影响力的WEB应用开发框架,众多的典型案例确保可以稳定用于商业以及门户级的开发。

AltStyle によって変換されたページ (->オリジナル) /