SHARE
TWEET

Untitled

a guest Oct 19th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return ModelPai::with(['nomeFuncaoNaModel1'=>function($query){
  2.      $query->select(['Campo1_da_tabela1']);
  3. }])->with(['nomeFuncaoNaModel2'])->findOrFail($id);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top