This will soon be the one of the most viewed video in this channel 😂 good work
@muditgulgulia53503 жыл бұрын
Correct 😂
@aboodlibda71613 жыл бұрын
Yes I think ❤
@dibbyo4562 жыл бұрын
Yup
@chengkangzai2 жыл бұрын
Yes, it's me in 8 month, revisiting this video 😂
@tiagooliveira143 жыл бұрын
This packages should be in the framework. They're really good.
@LaravelDaily3 жыл бұрын
Anyone can add anything to the framework, it's open-source, so you can try.
@KgfLikia2 жыл бұрын
Ι was about to say the same.
@user-zg1pc6md6y3 жыл бұрын
Большое спасибо) смотрю каждый день. Всегда очень полезно
@user-ld1gz1cr1j3 жыл бұрын
Реал, не сложно говорит. Прекрасно понятно
@ARMONEY6663 жыл бұрын
Иногда такие вещи показывает что удивляешся
@pankajbokdia2 жыл бұрын
I cannot thank you enough! Your channel is AMAZING! Thank you for doing what you do!
@0x0456 Жыл бұрын
This is EXACTLY what I needed to see. Thank you so much!
@auroraapps1853 Жыл бұрын
Superb Laravel specialized developer of all the time. I like you Sir
@philipcook6191 Жыл бұрын
Soon to by membership this month. Your way of explaining wastes no time and you to the point and so knowledgeable, been watching for year but I need to get into your full courses. Thanks for this, a super help. From cape town, south africa.
@worthsalive Жыл бұрын
You just earned a new subscriber. Kudos to you. You just showed me exactly what I needed to see
@abdalkhalekchamkha3622 Жыл бұрын
you are the best ,thanks you for improving my laravel knowledge, i was do stupid things before i see this video 😅
@levieraf3 жыл бұрын
Dude! you are awesome, so so accurate! You are a good teacher! I love your channel! Great work!
@salman-8042 жыл бұрын
I learnt a lot from this tutorial. Thanks a lot !!
@bilaljan7659 Жыл бұрын
that is what i was searchingfor an hour, thanks alot sir !!!
@MahmodurRahmanShihab3 жыл бұрын
Thanks for your laravel daily tips.
@DennisBraga3 жыл бұрын
Life saving tip. Life saving package. Congrats to both.
@glowiever2 жыл бұрын
finally the addon is mature enough to use! nice tutorial.
@AldhiAlbadri2 жыл бұрын
Problem solving, thanks sir!
@aineelzihnee96343 жыл бұрын
First time seeing video on youtube without dislike button being tick.
@demeja163 жыл бұрын
Очень крутое видео, спасибо за улучшение наших знаний в Laravel:)
@maxgoose46713 жыл бұрын
ну я хз понял ли он)
@shahosanandaji9894 Жыл бұрын
You are the best, Povilas!
@ChangeYourLifeForever2 жыл бұрын
by this video you can understand the principle of has_many and belongs_to in other languages and frameworks also
@msdeav3 жыл бұрын
Really helpful video. Thank you
@ValeriyaPolovinkina2 жыл бұрын
Thank you for this video. In real life we need in one query some fields from first level, some from second level, third, etc. But it is another story =)
@HadiHasanpur Жыл бұрын
Many thanks You are best in yours job ... I cannot thank you enough! Thank you teacher for your trainings!
@KasimSheyi3 жыл бұрын
Your videos are always wonderful.
@vigneswarans136 ай бұрын
Excellent explanation 🎉
@arashpirhadi13263 жыл бұрын
great video thanks. :) but i think in some situation like this performance will drop after 2 joins and more. I mostly using DB facade for retrieving data from database.
@LaravelDaily3 жыл бұрын
Yes, for complex queries raw queries are still the best.
@azeroth56723 жыл бұрын
This is what I need!!! Thankyou so muchh for this
@user-rm4zo1mg5o3 жыл бұрын
Something done with few lines I have to do with complex sql queries with joins, to do the same on old projects running over laravel 5.2 in my main work. Thank for this video.
@hamzaradouan40743 жыл бұрын
I literally needed to know this, thank you so much 💓 keep up the great work 💪
@shaadishtiaque20843 жыл бұрын
Your tutorials help a lot... Thanks
@AlexTheGreatish3 жыл бұрын
This is great thank you.. Could you do a video explaining the different type of relationships and how the database structures should be set up in terms of where foreign keys are, etc?
@LaravelDaily3 жыл бұрын
I have an article: blog.quickadminpanel.com/eloquent-relationships-the-ultimate-guide/ Also, it's best to read the docs: laravel.com/docs/8.x/eloquent-relationships
@biplobshaha2829 Жыл бұрын
Thank you so much. It's help me a lot.💝💝
@Dinookys Жыл бұрын
🎉 save the day, thanks a lot
@jeanfrancois36053 жыл бұрын
OMG, this is amazing thank you so much!
@vbadheli3 жыл бұрын
Thank you.. this help me a lot..
@JamesShisiah2 жыл бұрын
This is really great. Love it
@Trizen3212 жыл бұрын
you always provide good content
@md.robelahammed4763 Жыл бұрын
Amazing content. It helps me a lot. Thanks
@Matheus708 Жыл бұрын
Wow! that`s really really awesome!
@alexandergontsov6219 Жыл бұрын
Really good job. Thanks 🙏
@bmtamim78183 жыл бұрын
You are awesome 😍
@afestacincome22243 жыл бұрын
Can you please do a Short video on how to create nested comment and also a Short video on how to retweet a post ( Just like Twitter)
@ikarahubs9653 жыл бұрын
Retweet feature will be nice
@niffeydovie49063 жыл бұрын
@@ikarahubs965 nested comment please
@cethartest4693 жыл бұрын
awesome, thanks you, please more and more advanced eloquent
@LaravelDaily3 жыл бұрын
I have a full course about advanced eloquent: laraveldaily.teachable.com/p/laravel-eloquent-expert-level
@MUJAHIDKHAN3 жыл бұрын
Thank sir , one of the best video
@hostname472 жыл бұрын
very very very helpful package thanks !
@codepilot27663 жыл бұрын
This is awesome bro......It will help me a lot :)
@nbqenglishvietsubstyle1173 жыл бұрын
You are a god to me, thank you so so much
@kreatur_3 жыл бұрын
Great, now I just need to know how to access deeper relationships with a girl
@lucasj.pereira49123 жыл бұрын
To talk with her dad or grandad?
@6BEEP93 жыл бұрын
You would be fine with just BelongsTo
@Raftor743 жыл бұрын
Awesome!
@poplach3 жыл бұрын
Very informative video, thanks.
@amrqawasmeh Жыл бұрын
Thx for the great content
@QianZhiwei Жыл бұрын
very well. thank you.
@aryarizkysandi83512 жыл бұрын
thank you very much for tutorial sir!!
@g3n1kindra2 жыл бұрын
this help me a lot, thanks
@AbdulMajeedShehzad3 жыл бұрын
Thank you for the great video, I've a question for this scenario. is it a good practice to use keys in deep relations ? for example in employees table we add country_id to avoid complex queries when working on reporting. I've been looking for this answer for quite a long time
@kauandouglas2 жыл бұрын
Up
@javieru58712 жыл бұрын
Feel you bro, done the same: usign foreign keys to those deep deep relationships
@tarekalhalabi87763 жыл бұрын
Great video💙
@newtonsefa572111 ай бұрын
Thank you
@fylzero3 жыл бұрын
The BelongsToThrough query actually became less efficient, no? It reduced the queries and models used but memory and time to execute increased.
@gethermedel36202 жыл бұрын
exactly, it slowed it down but it did simplify the work, so if you're application doesn't require or need the small performance difference, it's a good choice though.
@programadorweb8403 Жыл бұрын
good work!!!
@claudiomenares41725 ай бұрын
Muchas gracias 🤯
@insider-analyst2 жыл бұрын
composer require staudenmeir/belongs-to-through:"^2.5" not installing on laravel 8
@joshbarros19953 жыл бұрын
This is cool!!!
@Ayvengo215 ай бұрын
All the time i see that orm magic like this I'm asking myself does it worth it or maybe some escaped sql would be way easier to read and write. Because sql knowledge could be transferred between projects while knowledge of specific orm might be problematic.
@ivan.silicin3 жыл бұрын
Thank you!
@my_religion2 жыл бұрын
Pretty helpful!
@rdvr3 жыл бұрын
Brilliant!
@amgadalwattar28632 жыл бұрын
very helpfull thanks
@ahmedsyam3 жыл бұрын
Good job!
@rishabhandari25013 жыл бұрын
Helpful 🙌🖤
@erh4rdt3 жыл бұрын
great, thank you!
@huynguyenduyit4441 Жыл бұрын
Amazing
@fuhfaysal2 жыл бұрын
awesome!!
@andriusgeciauskas31545 ай бұрын
@Laravel Daily Sveikas Povilai, niekaip negaliu issaikinti turiu panasia problema: character->quests->objectives->tasks turiu padaryti toki dalyka paspaudus mygtuka "track quest" uzsitrakina questas kaip betkokiam zaidime sone atsiranda lentele kad zaidejas matytu questa kuri trackina. man reiketu duomenu is visus modeliu quest, objectives, tasks kurios pajungsiu ant laravel websockets kad kai zaidejas progresuoja per savo questa jie butu automatiskai updatinami. klausimas butu toks: ar tai butu imanoma padaryti su hasMany ar hasManyThrough ar belongsToMany niekaip negaliu isspresti sitos bedos reikia uzloadinti questus su objectives ir tasks
@LaravelDaily5 ай бұрын
Žinok trumpame komentare negaliu atsakyti, reikia žaistis ir eksperimentuoti, deja nebeturiu laiko tokiam individualiam konsultavimui. Bandyk rašyti į Laracasts forumą.
@mostafamahfouz11392 жыл бұрын
thanks a lot
@GabrielMoura322 жыл бұрын
thanks
@chibuikeumezinwa78273 жыл бұрын
Lovely!
@dApoTB3 жыл бұрын
Thanks for your videos! Could you please do one about constructing relationships between tables that are in different databases and connection names to those tables cannot be hard coded. E.g.: User table is in DB1, Post table is in DB2 and Comment table is in DB3. Can we construct a relationship here? Thanks!
@SonsParaRelaxar3 жыл бұрын
It will work the same, the only thing you will have to do is overwrite the connection variable inside of the model.
@muditgulgulia53503 жыл бұрын
Best video. 👌
@achmadimanfirmansyah6633 жыл бұрын
thank you
@berthojoris3 жыл бұрын
The best....Thanks
@developer_sagor3 жыл бұрын
thank you very much
@devsun90633 жыл бұрын
Thanks 🙏
@sir_brian_d3 жыл бұрын
6:03 the query count went down but the time & memory usage went up, less performant 🤔maybe it is not using an index
@GergelyCsermely3 жыл бұрын
Thanks
@jimishukurow22863 жыл бұрын
royal like from me!
@RANJEETKUMAR-wz4dg3 жыл бұрын
amazing thanks
@TechITWorld2 жыл бұрын
Could you make one video of belongstomany with three level deep query with where condition (with the last one)?
@erikgratz5539 Жыл бұрын
@ 8:00 you are showing off the functionality of `hasManyDeep` to associate employees with their countries. Could this also be achieved with an additional `hasManyThrough` definition? Where it is defined as `hasManyThrough(Employee::class, Shop::class)` ? Or do those methods not chain well / is this strictly better for performance?
@ekselyum343 жыл бұрын
Thanks 👏
@ts.subramanipaiduthaly20382 жыл бұрын
Bro, if possible all your future video please make very big fonts and alsp zoom abit because when we use phone its hard to see. It cause not complete watch
@akintandavid2500 Жыл бұрын
Thanks for this how can i learn more about eager loading
@martinh49823 жыл бұрын
Hi Povilas, In Eloquent is it possible to join to an arbitrary sql statement? For example, say I have a User model and I want to create a UserStats relationship. However UserStats is not a table, but a sql statement that computes stuff like last_login, number_of_posts, up_votes etc. The only way I've found to do this so far is with a database view that I manage with migrations, but was wondering if this could be done purely in Laravel.
@shofada3 жыл бұрын
Thanks or putting this together. If you had a page that needs to display say for every employee, the country, city and shop, what might the query look like?
@dacpuspadewi3 жыл бұрын
Hey,, thankyou for this tutorial. and i have question related to this. so, i have 4 models which connect 4 tables : 1st model (dupak table): public function activities() { return $this->belongsToMany(Activity::class, 'activity_dupaks', 'dupak_id', 'activity_id'); } 2nd model (activities table): public function dupak() { return $this->belongsToMany(Dupak::class, 'activity_dupaks', 'activity_id', 'dupak_id'); } public function productionType() { return $this->belongsTo(ProductionType::class, 'production_type_id'); } 3rd model (production_types table): public function activities() { return $this->hasMany(Activity::class); } public function resultUnit() { return $this->belongsTo(ResultUnit::class, 'result_unit_id'); } 4th model (result_unit table): public function productionTypes() { return $this->hasMany(ProductionType::class); } the questions is, how to get data from result_unit table, from dupak table collection(->get()) ? i want to foreach the $dupaks = Dupak::where(....)->get(); in blade, and show some data from result_unit table through $dupaks foreach. i really clueless for this case. i hope you answer my question :') thankyou^^
@gloriaordiz5924 Жыл бұрын
Please make a video about this package belongstothrough
@LaravelDaily Жыл бұрын
That package has a very good documentation, not sure why the video is needed
@ugayashan86593 жыл бұрын
Great content, can you make a video on user referral system using laravel Eloquent
@renwar3 жыл бұрын
Very helpful video. Why laravel framework does not have these kind of relationships yet?
@LaravelDaily3 жыл бұрын
You're free to submit pull requests to the framework and add it.
@johnerrolprincipe8992 Жыл бұрын
Hi, I watched your video about function's return type, is there any documentation about the full list of return types? Thank you!
@LaravelDaily Жыл бұрын
Any PHP variable type or PHP/Laravel class could be a return type. There's no list.
@vovkko3 жыл бұрын
This all sounds good when you have less 1k records, but when you have 2m inner join with 14m table performance will die
@MrFxJ3 жыл бұрын
Hmm what do you suggest? Because from my POV this is the best performance you will get and if you have 2m inner join with 14m table performance will die whatever you use
@martinjones82313 жыл бұрын
I follow all of your video u are great because the laravel path am on is just what u can teach so I need ur personal contact.