DB or Eloquent

Posted 9 months ago by amjadkhan896

Hi any body here to help me and convert this

SELECT * FROM company_profiles LEFT JOIN ( SELECT COUNT(jobs_posted.id ) AS jobsCount, jobs_posted.customer_id FROM jobs_posted GROUP BY jobs_posted.customer_id ) as t on t.customer_id = company_profiles.customer_id ORDER BY jobsCount desc

in to laravel Query Builder or Eloquent I tried my best but i can't figured it out Thanks

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.