Maybe this will be ok for you?
$featurepackage = Featurepackage::findOrFail($id)->with('features')->first();
upd: (same but with less code)
$featurepackage = Featurepackage::with('features')->findOrFail($id);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community