Тёмный

Eloquent Practice: Group By Raw and HasMany 

Laravel Daily
Подписаться 145 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@MonethiTebohoArthurnacious
@MonethiTebohoArthurnacious 2 года назад
I wish I could give more likes to this video. Thank you, master.
@Alexander150997
@Alexander150997 2 года назад
Don’t forget about indexes. When you’re using such query as “order by DATE(created_at)” then you need to create a new index exactly for DATE() result because common index for created_at column wouldn’t work.
@GergelyCsermely
@GergelyCsermely 2 года назад
Thanks for the nice example gouping on collections. Very nice solution,
@fadyelias
@fadyelias 2 года назад
Thanks very good 👍 tutorial
@EL_PANDA_742
@EL_PANDA_742 2 года назад
Thanks, I love your method of explaining things. Could make a video quickly explaining the logic of “Features Flags” they are really important.
@NotBeHaris
@NotBeHaris 2 года назад
That's awesome after a long time. Today new thing to learn. I know i am late.
@ChristepherHoffman
@ChristepherHoffman 2 года назад
THANK YOU BRO!!!
@alila3883
@alila3883 2 года назад
Nice solution
@ehabtalaat7592
@ehabtalaat7592 2 года назад
thank you this is really helpful
@kkumarvaghela3656
@kkumarvaghela3656 2 года назад
Thank You very much Sir
@vutienle926
@vutienle926 2 года назад
This is really helpful sir, thank you so much
@AksoomHussain7866
@AksoomHussain7866 2 года назад
it better to have Discord server for Laravel daily for day to day questions community helping each other together
@LaravelDaily
@LaravelDaily 2 года назад
I already had created a Slack channel in the past. It took waaay too much of my time. Don't have that much free time anymore.
@bpzweber1918
@bpzweber1918 2 года назад
great explanation
@yoyoypy
@yoyoypy 2 года назад
is this method can be applied to show traffic/views group by dates in line charts too?
@mumuhamm3263
@mumuhamm3263 2 года назад
Merhaba sizinle iletişime geçebilir miyim?
@binuavin
@binuavin 2 года назад
Hi, thanks for all videos. They are soo helpful. Just a request, If possible can you change the terminal and window background colors to black?
@LaravelDaily
@LaravelDaily 2 года назад
Why? It's a personal preference, not everyone would prefer black
@binuavin
@binuavin 2 года назад
​@@LaravelDaily woww, thanks for the quick reply. No, if its your preference then its absolutely okay. I just said because, most of the time I watch your videos in mobile on the way back home from work at night and my usual mode of transport is Bus. Because of that I have to play the video on full brightness for better visiblity of your IDE and switching apps in your system with white background at full brightness hurts a bit on the long travel and i have to keep adjusting brightness thoughout the video. So just thought, it would be better if all your windows have uniform theme. But I completely respect your preference. And I Love your work. Nice, clean and understanable explanations throughout all your vids. Keep up the great work.🥰
@khawarali3720
@khawarali3720 2 года назад
Hi! I have one eloquent problem can you please help me. Let's suppose we have many loans and every loan has many contributors (agency employees). And every contributor can contribute in many loans. Loan--- manyToMany (contributor pivot) ---- Employees--- belongsTo ----User. I want to fetch loans list and eagerLoad only first contributor.
@LaravelDaily
@LaravelDaily 2 года назад
Added to the topic list for a video, in a couple of weeks
@medilies
@medilies 2 года назад
After grouping I would name the variable $posts_by_date
@heshankumarasinghe4211
@heshankumarasinghe4211 2 года назад
Hello Povilas, Can I ask a question? I have one controller method that is called from two views. Inside the controller method, I want to redirect the user back to different urls depending on from which view the request came from... Is it possible to do this without turning the single controller method to two controllers methods?
@LaravelDaily
@LaravelDaily 2 года назад
Sorry hard to answer without looking at the full code
@lassestube
@lassestube 2 года назад
Are you using forms in the views? IF so, you could set a hidden field with a parameter and use that to gauge where to redirect
@ilhamfajriumar9085
@ilhamfajriumar9085 2 года назад
Do you have a course for SOLID principle with testing, and course about E2E testing maybe? I just get addicted to TDD and i wanna improve it more
@LaravelDaily
@LaravelDaily 2 года назад
Not on that specific topic, no.
@L-A-O-S
@L-A-O-S 2 года назад
I wrote that there may be problem with optimization if the `likes` table is very large, but for some reason my comment is deleted, maybe youtube found some think) In general, optimization is a separate kind of craft.
@usanzadunje
@usanzadunje 2 года назад
Good video, could you please explain why orderBy('created_at', 'desc') wouldnt work abd you instead used ordering by DATE(created_at). Thanks!
@LaravelDaily
@LaravelDaily 2 года назад
Because we need to order by date and not by time, that's the task
@devendergupta_official
@devendergupta_official 2 года назад
Hi Povillas. I've got a question. I can see that in your debugbar the memory shown is 5mb. But in my application it shows 17-19mb always no matter how well I optimise it. Btw I'm using Laravel 7. Do you know what could be the reason?
@LaravelDaily
@LaravelDaily 2 года назад
From what I've heard, Windows servers take that memory by default. I'm on Macbook.
@devendergupta_official
@devendergupta_official 2 года назад
@@LaravelDaily hmmm ok. Thanks
@bidhanbaniya7605
@bidhanbaniya7605 2 года назад
actually the full form of dd is dump and die not die and dump :)
@VideosforWhatsappStatus
@VideosforWhatsappStatus 2 года назад
Hi Povillas, please create one video on social media api integration like facebook comments and share.
@LaravelDaily
@LaravelDaily 2 года назад
I don't work with Facebook API so I'm not competent to create a video about it
@VideosforWhatsappStatus
@VideosforWhatsappStatus 2 года назад
@@LaravelDaily Is MySQL able to handle a large number of records like trillions of records in the table?
@LaravelDaily
@LaravelDaily 2 года назад
The only way to find out is to try it out, with your specific structure.
@VideosforWhatsappStatus
@VideosforWhatsappStatus 2 года назад
@@LaravelDaily thanks for replying
@fftfaisal
@fftfaisal 2 года назад
Hi, I have a small question. Is there any way to include featured student into regular student list ?It supposed to be I have a user table, and featured payment table where has user_id column. normal collection I can able to foreach and display users. But If some of the user/student make some payment to list at the top. what to do then in a query ? . I can make separate query and then merge them into collection. But I want in the normal collection. Is there any solution ??
@LaravelDaily
@LaravelDaily 2 года назад
Isn't it the same as in this video? User::withCount('payments')->orderBy('payments_count', 'desc') ?
@fftfaisal
@fftfaisal 2 года назад
@@LaravelDaily thank you so much for the reply :) . great its working. But its orderBy desc, can it possible in random order and limit 2 or 5 ? thank you again.
@LaravelDaily
@LaravelDaily 2 года назад
That I can't reply in a short RU-vid comment, it would take time to experiment and see results.
@fftfaisal
@fftfaisal 2 года назад
@@LaravelDaily thank you. you can make a video for this type of scenario. I would love to see in future in this channel. Thanks again.
@ronekhan6098
@ronekhan6098 2 года назад
laravel zoom integration package review please sir
Далее
Eloquent Performance Challenge: My Solution Version
9:57
Laravel: Create Public API with Cache and Rate Limits
12:18
🎙А НЕ СПЕТЬ ли мне ПЕСНЮ?🕺🏼
3:06:10
Faster Eloquent: Avoid Accessors with Foreach
9:35
Просмотров 53 тыс.
Eloquent Soft Deletes: Things You May Not Know
10:57
Просмотров 21 тыс.
Optimizing Eloquent: Running Out Of Memory?
6:11
Просмотров 43 тыс.
.NET Developer miserably fails at Laravel PHP
52:23
Просмотров 13 тыс.
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Eloquent Advanced Subqueries
5:38
Просмотров 6 тыс.
Eloquent Performance: TOP 3 Mistakes Developers Make
7:59
🎙А НЕ СПЕТЬ ли мне ПЕСНЮ?🕺🏼
3:06:10