Back Button Laravel

What's New in Laravel 5.4

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 features. Markdown mail, higher order collection messages, Dusk, real-time facades... yes, please! In this series, I'll get you up to speed on what's new in Laravel 5.4 as quickly as possible.

Intermediate
Difficulty
10 episodes
32:17 mins
Start Series
    1. Run Time 1:44 Free

      First up for this series is a review of two new middleware that are included with Laravel out of the box: TrimStrings and ConvertEmptyStringsToNull. In effect, for every form request, Laravel will automatically trim any white space, while also converting all empty request fields to null.

    2. Laravel 5.4 includes support for higher order messaging, which is a fancy term that essentially breaks down to "collection shortcuts." What if, rather than filtering a collection, passing a closure, and returning some data, you could simply type: $collection->filter->isArchived()? How cool is that? I'll show you how it all works in this episode.

    3. Run Time 4:56 Free

      As part of Laravel 5.4, Laravel Elixir has been upgraded and renamed to Laravel Mix. While both versions will continue to exist, Mix should be your build tool wrapper of choice. It's built on Webpack, and provides nearly the exact same friendly API that you're already used to.

    4. Run Time 1:07 Free

      Laravel 5.4's routing component has been upgraded to support a more fluent routing syntax. No longer are you required to reference an array of awkward options, should you require a route group, prefix, or name.

    5. When generating a controller from the command line (php artisan make:controller), you'll now find a new --model flag. When called with the name of a model, Laravel will automatically generate a resourceful controller that includes the necessary boilerplate to inject this model in all relevant controller actions.

    6. Run Time 5:19 Free

      In Laravel 5.4, Blade offers a new @component directive. With this new addition, you may now, where relevant, think in terms of components and slots (much like Vue's implementation). Define a view partial, reference any necessary variables, and then call this component from any other view. It's probably best if I simply show you!

    7. Run Time 4:25 Free

      When sending email, you may combine Markdown with Blade components to provide maximum flexibility. You're going to love this. Let's review the entire workflow, while using Mailtrap.io as our test server to review each compiled email.

    8. Run Time 2:29 Free

      By now, you're surely well aware that Laravel offers facades, which offer a simple, static interface to objects in your service container. In the past however, should we have needed to create our own facades, we were required to manually construct each relevant facade. Not anymore! Laravel 5.4 can do it on-demand for you. This is insanely cool, and will annoy countless onlookers. So they're definitely worth a look.

    9. Laravel Dusk is a brand new first-party package that drastically simplifies the process of performing tests against an actual browser. As such, it can be used to test all forms of behavior and JavaScript interaction. In this episode, I'll give you the quick rundown; however, I do encourage you to watch "How I Personally Learn: Dusk Edition" for a slower dive into what this new testing package can do for you.

    10. As part of Laravel 5.4, you may now map any Eloquent events (created, saved, deleted, etc.) to dedicated event classes. You'll find that this method cleans up your model code significantly.

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 What's New in Laravel 5.1
Beginner
Difficulty

Laravel 5.1 includes a variety of welcomed new features. Everything from broadcasting events, to massively improved testing facilities, to LTS support...

2:11:21 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 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