laravel-mongodb icon indicating copy to clipboard operation
laravel-mongodb copied to clipboard

[Feature Request] How use with to bring union data for relations?

Open NandoSantana opened this issue 4 years ago • 0 comments

I have this relations:

public function empresa(): belongsTo
    {
        return $this->belongsTo(App\Models\Empresa::class);
    }

    public function user(): belongsTo
    {
        return $this->belongsTo(App\Models\User::class);
    }

    public function originUser(): belongsTo
    {
        return $this->belongsTo(App\Models\User::class, 'origin_user');
    }

NandoSantana avatar Oct 05 '21 17:10 NandoSantana