Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return ModelPai::with(['nomeFuncaoNaModel1'=>function($query){
- $query->select(['Campo1_da_tabela1']);
- }])->with(['nomeFuncaoNaModel2'])->findOrFail($id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement