belongsTo('\App\Models\Outlets','outlet_id','id'); } public function restuarents(){ return $this->belongsTo('\App\Models\Restaurants','resto_id','id'); } public function payments(){ return $this->hasMany('\App\Models\PaymentLinkPayments','payment_link_code','unique_id')->where('status','paid'); } }