i want to call same Article model with articleAmmendment and followers
$data['ammendmentcontent'] = Article::with('articleAmmendments','sections.sectionContent','sections.regulations','sections.schedules','sections.caselaws','relatedBook','relatedRegulations','relatedSchedules','relatedcaselaw.Content','relatedBook.relatedActs','tamiltranslation','sinhalatranslation','followers')->where('slug',$id)->first();
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire