I have such MySQL query:
SELECT user_id, text,
(SELECT count(*) from replies AS t2 WHERE t1.user_id=t2.user_id) AS cnt
FROM replies AS t1
WHERE thread_id = 910 ORDER BY `t1`.`user_id` ASC
Is it possible to rewrite with Laravel Eloquent? How?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FWjJuj
via IFTTT
Aucun commentaire:
Enregistrer un commentaire