PHPNews

Introducing Laravel Horizon - a Dashboard for your Queues

Written by MattStauffer.co - Published on MattStauffer.co
Aggregated on Tuesday July 25, 2017 - Permalink

At Laracon 2017, today, Taylor introduced the latest package in the Laravel world. Like Cashier, Scout, and Passport before it, Horizon is an open-source package that you can bring into your apps but isn't distributed with the core. Update: After I wrote this post, Taylor also released an intro post on Medium covering a lot of these topics from the official angle. What is Horizon? …

Continue reading »


New Laravel 5.5 Features: Recap from Laracon US 2017

Written by MattStauffer.co - Published on MattStauffer.co
Aggregated on Tuesday July 25, 2017 - Permalink

Timeline: releasing August-ish; around Eu Frontend presets php artisan preset react ; default React components php artisan preset none ; axis & blank Sass New routing options Route::view('/welcome', 'welcome') returns welcome view Works with route caching! Route::redirect('home', 'dashboard') returns redirect to another URI Blade::if Simple creation …

Continue reading »


Introducing Laravel’s tap, “higher order” tap, and collection tap

Written by MattStauffer.co - Published on MattStauffer.co
Aggregated on Tuesday August 15, 2017 - Permalink

If you follow Adam Wathan at all, you’ve seen him use his favorite function, tap() , dozens of times in his videos. But what does it actually do? tap() was introduced in Laravel 5.3 and got some power boosts in 5.4. Let’s take a look at what it is and what it does. Defining tap() function tap($value, $callback) { $callback($value); return $value; } That’s what the tap() …

Continue reading »


Laravel Collections’ higher order messaging and "when" method in Laravel 5.4

Written by MattStauffer.co - Published on MattStauffer.co
Aggregated on Thursday August 17, 2017 - Permalink

It seems like it was just last year that collection pipelines took over the Laravel world. Taylor had introduced collections to Laravel a while back but they sat somewhat under-appreciated until Adam Wathan wrote his book Refactoring to Collections about how they can transform the way you write a lot of your PHP code. In Laravel 5.4, collections got a few boosts. Let’s take a look at a few. …

Continue reading »


Real-time (automatic) Facades in Laravel 5.4

Written by MattStauffer.co - Published on MattStauffer.co
Aggregated on Tuesday August 22, 2017 - Permalink

Laravel 5.4 introduced a new feature called “real-time facades”, which provide the convenience of facades, defined real-time instead of in classes. Taylor tweeted about it, but I wanted to explain what they are and how they work. A quick introduction to facades in Laravel Already know how facades work? Skip to what’s new . If you’re not familiar with facades in Laravel, they’re …

Continue reading »


Real-time (automatic) Facades in Laravel 5.4

Written by MattStauffer.co - Published on MattStauffer.co
Aggregated on Tuesday August 22, 2017 - Permalink

Laravel 5.4 introduced a new feature called “real-time facades”, which provide the convenience of facades, defined real-time instead of in classes. Taylor tweeted about it, but I wanted to explain what they are and how they work. A quick introduction to facades in Laravel Already know how facades work? Skip to what’s new . If you’re not familiar with facades in Laravel, they’re …

Continue reading »