skip to Main Content

Laravel show with relationships

How do you use the show function relationships? i know this works: public show ($id) { Model::with('relationship')->find($id); } but with the new format public show(Model $model) { } how do you include the relationship? i've tried $model->with('relationship')->get(); but it changes…

VIEW QUESTION
Back To Top
Search