I've joined a users table using hasOne in the Laravel Model. I'd like to use the where statement on the joined table data. Is this possible using Eloquent ORM?
$episode = Episode::where('uri', Input::get('episode'))
->where('public', true, 'OR') // Return public or:
->where('user.id', $->id) // Own user events
->first();
$episode = Episode::where('uri', Input::get('episode'))
->where('public', true, 'OR') // Return public or:
->user()->where('id', $id) // Own user events
->first();