Inspired by ASP.NET MVC 6, you may now inject services directly into your views. While it's not appropriate for everything, there are a number of situations where this technique will prove to be quite useful. Let me show you.
In addition to a series of optimizations and consistency improvements, in Laravel 5.1, Elixir includes EcmaScript 6 compilation right out of the box, using the excellent Babel compiler.
Whether for database seeding or general testing, you're going to love model factories in Laravel 5.1. A single line of code can give you a huge amount of convenience and power.
In the past, defining arguments and options for an Artisan command was - to be frank - a big pain. For options, you needed to create a method that returned an array of arrays, where each one contained a sequence of values. It was up to you to memorize all of this. Thankfully, in Laravel 5.1, it's infinitely easier. In fact, it's as easy as defining a route.
You'll find that two directory names have been changed. "Commands" is now "Jobs", and "Handlers" is now "Listeners." Don't worry; these changes won't break your code. They're backward compatible.
We don't require a code editor for this one. For Laravel 5.1, the documentation has been massively improved - with Taylor Otwell going over each and every page. Even better, we now have excellent search at our fingertips.
Not only that, but with version 5.1, your company instantly inherits long term support: bux fixes for two years, and security fixes for three!
This next one is by no means a big feature, but it might prove useful in some situations. You may now apply a prefix to your named routes. I'll show you how.
Login throttling in Laravel 5.1 is a breeze! In this lesson, we'll review the basic concept, the implementation, and finally the underlying source code to make it possible.
You know how to fire an event with Laravel, but what about when you want that event to travel all the way to the client-side? How the heck do we do that?