My Blog Posts

Laravel 6.11.0 Released

Laravel 6.11.0 Released


Eloquent firstWhere () method

Caleb Porzio firstWhereDevelopers method developed, which is shortcut where()->first():

Before User::where('emaill', 'foo@bar.com')->first(); After User::firstWhere('email', 'foo@bar.com');

This new method is only available in the constructor and cannot be used in the query.

Optimize Redis Multichannel Streaming

Josias Montag provided an optimization for broadcasting to multiple channels in Redis:

At Laravel, it is quite common to send activity to multiple channels at the same time. Currently, all result in multiple broadcast commands that send the same load to the Redis server. This causes unnecessary data transfer (costs), especially if the load is quite large.

Details of this you can check .

At GitHub 6.10.0 and 6.11.0 Between Difference you can see the whole All version notes for Laravel 6.0 on GitHub v6 change log :

v6.11.0

Added

  • Added Illuminate\Database\Eloquent\Builder::firstWhere() method ( # 31089 )
  • Redis Broadcaster: Stream to multiple channels at a time ( # 31108 )

Fixed

Updated



Share this article


Comments (0)

Comment