Laravel 5 Join Juwey

I Make a query and its working fine can any one tell me how can i convert this query to laravel 5.

I’m trying to add a condition on join query using Laravel’s query builder.
This is the query I’m trying to rewrite with QB:

Here is query

SELECT a.id,GROUP_CONCAT(b.name ORDER BY b.id) DieasesName FROM
combinations a INNER JOIN diseases b ON FIND_IN_SET(b.id,
a.dieases_id) > 0 GROUP BY a.id

How can i make that query in laravel 5 i was unable to make Raw query


Source: laravel

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.