Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function cliente_operacaos()
- {
- //return $this->belongsToMany('App\ClienteOperacao', 'cliente_c_n_p_js', 'Cliente_ID', 'Operacao_ID','Frete', 'Seguro'));
- //return $this->belongsToMany('App\ClienteOperacao', 'clientes', 'Cliente_ID', 'Operacao_ID')->withPivot( 'Cliente_ID','Operacao_ID', 'Frete', 'Seguro');
- //dd($this->belongsToMany('App\ClienteOperacao', 'cliente_operacaos', 'Cliente_ID', 'Operacao_ID'));
- //$this->belongsToMany('App\ClienteOperacao')->withPivot('Frete','Seguro'));
- //dd($this->belongsToMany('App\ClienteCNPJ'));
- // dd($this->belongsToMany('App\ClienteOperacao')->withPivot('Cliente'));
- return $this->belongsToMany('App\ClienteOperacao', 'cliente_operacaos', 'Cliente_ID', 'Operacao_ID')->withPivot('Frete', 'Seguro');
- }
Add Comment
Please, Sign In to add comment