Help us understand the problem. What is going on with this article?

2018/4以降 Eloquentでサブクエリをjoinする正しい方法 joinSub

More than 1 year has passed since last update.

なんか DB::raw 使えって記事ばっかりなんですよ

https://qiita.com/sato_ryu/items/1033fe51b886622a6dda
https://teratail.com/questions/99379
https://teratail.com/questions/106851

2018/4/23、Laravel 5.6.17 にてjoinSubって関数が実装されました。
https://laravel-news.com/laravel-5-6-17

ちなみに、内部で as を決め打ちしているので、oracleでは使えません

https://twitter.com/kituneponyo/status/1067677537558392833

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away