New in Laravel 8: withSum/withMax/withAvg on Relationships

preview_player
Показать описание
A few new Eloquent relationship methods that I haven't demonstrated on this channel, so right about time.

- - - - -
Support the channel by checking out our products:
Рекомендации по теме
Комментарии
Автор

Thank you, latest version also worked

ahmedsajidh
Автор

I think ActiveRecord and Eloquent are both of the greatest ORM

Jose-ozby
Автор

very useful thank you for updated us...

neerajsinghtangariya
Автор

any way to do limit the sum similar to how we do it on withcount?

levisudak
Автор

Hello, Sir @Laravel Daily.
Why aliases from aggregates function on relationship can not be filtered using the having method?

luqmansolihin
Автор

is there any coupon for the Laravel structure course? 🙂

marcinmaj
Автор

how to get sum of relation with subquery?

aftabgirach
Автор

Hi sir? how about nested relationships? User hasMany Tasks hasMany TimeEntries and get sum of entries per user?

cyrus
Автор

Great tutorial. but today I tried withSum method but it will return null on none related records instead of 0. did you noticed this bug?

iarman
Автор

sir, can u create tutorial about spatie flysystem, how to get more than 1 images thumbnail in one request.

kid_rz
Автор

Hi, Can share your review about Laravel with MongoDb

AjayKumar-mimr
Автор

Hi, I am trying to use laravel with chartjs, but I just cannot figure out how to format the data to be processed by chart js. Could someone give me a simple example how a query should look like in the controller, and how should the passed data look like inside the chart? : {
labels: [??],
datasets: [{
label: '# of Votes',
data: [??]

taljulian