For example I have 2 queries:
1:
$q = SomeContent::select('somecontent_id')
->where('slug', Request::segment(2))
->where('something', $something)
->first();
2
$req = SomeContent::select('slug')
->where('something', $anothersomething)
->where('somecontent_id', $q->somecontent_id)
->first();
How would I merge these together as one query if possible in laravel's query builder? I can't find a lot about using selects statements inside where statements.