Back Button Laravel

What's New in Laravel 5.1

Laravel 5.1 includes a variety of welcomed new features. Everything from broadcasting events, to massively improved testing facilities, to LTS support. As always, Laravel is setting the curve with this new release. Let's breeze through the new features that you'll be enjoying.

Beginner
Difficulty
16 episodes
2:11:21 hrs
Start Series
    1. Run Time 2:24 Free

      Upon installing Laravel 5.1, the first thing you'll notice is that the style guide is a bit different. Laravel now adopts the PSR-2 coding standard. If you're not familiar, this is nothing more than a set of style guidelines for writing code.

    2. 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.

    3. Run Time 5:35 Free

      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.

    4. Run Time 6:29 Free

      If you worked through the Intuitive Integration Testing series, you'll feel right at home in 5.1. Most of that API is now part of the base install. This means, you'll be writing incredibly readable integration tests in no time.

    5. Run Time 8:25 Free

      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.

    6. Run Time 4:35 Free

      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.

    7. Run Time 4:20 Free

      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.

    8. Run Time 1:18 Free

      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!

    9. Run Time 5:29 Free

      We've already reviewed middleware parameters at Laracasts, so this episode will serve as a quick, crash-course overview.

    10. Run Time 2:07 Free

      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.

    11. Run Time 10:22

      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.

    12. Run Time 17:01 Free

      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?

    13. Run Time 11:20 Free

      Laravel 5.1 is the first release to offer ACL functionality straight out of the box. Let me show you how laughably simple it is to work with!

    14. Let's continue with our review of Laravel's ACL capabilities, by reviewing policy objects.

    15. Before we move on to learning how roles fit into this workflow, let's take some time to peek behind the scenes. This way, if you're curious, you'll know exactly how all the bits and pieces fit together.

    16. For some projects, you may find that you require greater flexibility. Consider a CMS like WordPress, where users may be assigned roles, each which has its own set of permissions. How can we make that work?

      View the completed source for this episode on GitHub.

You May Also Enjoy...

Here are some additional series that may be up your alley.

Vue Laravel and the Front-end
Beginner
Difficulty

Let's take a break from the back-end, and instead focus on that other world: the front-end! Don't worry, Laravel 5 has made this process as enjoyable...

49:57 mins
Play
Laravel Laravel 5 Fundamentals
Beginner
Difficulty

Each year, the Laracasts "Laravel From Scratch" series is refreshed to reflect the latest iteration of the framework. This is the 2015 edition, which...

5:43:35 hrs
Play
Laravel Advanced Eloquent
Advanced
Difficulty

Sure, you've learned the essentials of using Eloquent in your applications, but do you really understand what's going on under the hood? Well, that's...

58:10 mins
Play
Laravel Intermediate Laravel
Intermediate
Difficulty

Made your way through Laravel 5 Fundamentals yet? Nice job! It's time to dig a bit deeper. In this series, not only will we review higher level featur...

2:30:07 hrs
Play
Laravel Build "ProjectFlyer" With Me
Intermediate
Difficulty

In this series, from scratch, you'll come along with me as I build a web app, called "Project Flyer." We'll tackle everything from the domain name pur...

2:47:33 hrs
Play
Laravel Eloquent Techniques
Beginner
Difficulty

For any Laravel user, a solid understanding of Eloquent is crucial. In this series, we'll review a number of key techniques for your toolbelt.

50:20 mins
Play
Laravel What's New in Laravel 5.2
Beginner
Difficulty

It's about that time again. Laravel 5.2 is on its way (possibly in January, 2016), with a variety of useful new additions. Let's get ahead of the game...

49:50 mins
Play
Laravel Laravel 5.2 From Scratch
Beginner
Difficulty

Each year, the Laracasts "Laravel From Scratch" series is refreshed to reflect the latest iteration of the framework. This is the 2016 edition, which...

3:26:05 hrs
Play
Laravel Russian-Doll Caching in Laravel
Advanced
Difficulty

Popularized in the Rails world, Russian Doll caching is an interesting approach, where you create nested fragment caches for your view logic. If you t...

1:37:45 hrs
Play
Laravel Laravel Authentication Techniques
Intermediate
Difficulty

While Laravel offers a robust, traditional authentication setup out of the box, you may find that you require unique setups for certain projects. Perh...

52:32 mins
Play
Laravel What's New in Laravel 5.3
Intermediate
Difficulty

It's about that time again! The release of Laravel 5.3 is imminent. That means, it's finally time to dig in and see what's new. And, well, there's a l...

2:43:50 hrs
Play
Laravel What's New in Laravel 5.4
Intermediate
Difficulty

It's that time of year again! Laravel is on the cusp of graduating to version 5.4. Along with it comes a variety of excellent new optimizations and fe...

32:17 mins
Play
Laravel Let's Build A Forum with Laravel and TDD
Advanced
Difficulty

A forum is a deceptively complex thing. Sure, it's made up of threads and replies, but what else might exist as part of a forum? What about profiles,...

19:29:26 hrs
Play
Laravel What's New in Laravel 5.5
Intermediate
Difficulty

Here we go again! Currently scheduled for an August release date, we're on the verge of Laravel 5.5. With that in mind, let's get a head start on the...

1:31:44 hrs
Play