"Mistakes" videos are the best!!! :) (because of new deep knowledge)
@rafamorawiec3 ай бұрын
I agree. Few years ago I fall in love with $with and that was a huge mistake. Now I'm never using $with and it's even better for me and my co-workers because now by just looking at query we know what exactly it will return.
@vaultdweller9663 ай бұрын
You didn't mention it but when you have a "$with" property on your model, you can use ->without('xxxxx') when you specifically don't need the relationship in a particular query.
@elgoogssie39693 ай бұрын
I'm sufferning form the imposter syndrom, but when i watch Your videos i actually feel good about myself since i do not make such cardinal mistakes as mentioned in this video. I do not consider myself as a programmes thou. I only work as one :)
@r.rakeshreddy16513 ай бұрын
Great video
@tomasreinert55113 ай бұрын
This is great video!
@ultrono233 ай бұрын
Great video.
@philipjamesajagabos25193 ай бұрын
Very helpful video
@rafa-m5s2l3 ай бұрын
Hi Povilas! Are you sure the cause lies in $with? I tried to reproduce this error and when using $with I get 2 queries. Could the cause lie deeper, for example in $append and some attribute that uses organisation?
@LaravelDaily3 ай бұрын
Not sure now, it's been a while since this video, don't remember its details now
@ryiad20103 ай бұрын
it is very helpful thanks
@PepperAddict3 ай бұрын
->random() or might be called ->inRandomOrder() is also very slow
@GeeksPartnerM3 ай бұрын
Does Model::with have the same effect? Should we avoid using those relationships??
@LaravelDaily3 ай бұрын
No, it's just about defining $with globally.
@nirbhaysingh25043 ай бұрын
How can I contact u I want to ask a few questions
@LaravelDaily3 ай бұрын
povilas@laraveldaily.com but I don't have much free time, only quick questions please
@rvrelaxingmusic46023 ай бұрын
What about $appends, is it the same case as $with or has another benefit?
@LaravelDaily3 ай бұрын
It's different, it automatically loads only for APIs, as I remember. But I don't remember using it ever, for the same reason: no guarantee when it would work
@vodacbao3 ай бұрын
❤
@PedroS-nv1sl2 ай бұрын
IU won't name them, but their code has Webkul written all over it 😅
@operationblackbishop47853 ай бұрын
Lol, I know the CRM.
@weeb32773 ай бұрын
go on
@operationblackbishop47853 ай бұрын
@@weeb3277 just look for Laravel Open Source CRM it will be in first 3 results. Check the demo.