I have the following scene:
$consulta = Dealer::find(1);
No Model
# Serviços
public function dealer_servicos(){
return $this->hasMany('App\DealerService', 'id_concessionaria');
}
Then if I do:
@foreach($consulta->dealer_servicos as $value => $res)
{!! $res->servico !!}
@endforeach
It brings me all the services that the TEM concessionaire.
How can I use the same methodology to bring the services that the DO NOT HAVE concessionaire? That is, to simulate LEFT OUTER JOIN
.
I need all records in the same query.