dimanche 27 janvier 2019

Creating subquery in laravel

How can I convert the following SQL query into Laravel query builder?

select
    *
from
    users
where
    EXISTS (
    SELECT
        *
    from
        posts
    where
        posts.created_by = users.id )



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire