How can i do conditional join with the db class?
\DB::select(
'photos.user_id','photos.img', 'photos.screened', 'users.id', 'users.username'
)->from('users')
->join('photos', 'LEFT')
->on('users.id', '=', 'photos.user_id' AND `photos`.`screened`=1')
Is this possible?
Thanks.