Laravel Eloquent Advanced Subqueries

preview_player
Показать описание
In this video, I will explain how we can utilize Laravel Eloquent Subqueries to solve a common model relationship issue.
Рекомендации по теме
Комментарии
Автор

Thank You very much bro. I am hoping for your more video.

hlaingbwaraung
Автор

Nicely done! 👍🏻 So the salary relation expects a foreign key salary_id, and we provide that through the addSelect?

michapietsch
Автор

Hi, when you add the column `salary_id` using addSelect(), you didn't add anything on the Resource. That's how it works? Automatically the column added by addSelect() are returned to the client? Also, couldn't we return only `salary` relation without the need for addSelect()? The salary relation can get first after ordering. I am just trying to understand the relation between addSelect() and the `salary` relation if there is any. Thanks :-)

bhaidar
Автор

nice vid. however u lost me at 5:00 - resources? just randomly inserted there with no explanation. otherwise nice. Waiting on the next vid and and video on resources

andrewkorneychuk
Автор

hello, thank you for the video. do you share phpstorm theme name or download link

serdartaylan