select p.id as id, p.title as title, cm.body as body
from post_comments as cm
inner join posts as p
on cm.post_id = p.id
where p.id = 25867
and p.title like '%hoge%'
and cm.body like '%test%';
このsqlをlaravelのクエリビルダを使ってデータを検索してきたいのですが
書き方がいまいちわかりません。
よろしければ教えてもらえないでしょうか
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。