Laravel définissant la relation

$user->posts()->where('active', 1)->get();
Cooperative Crab