belongsTo(User::class,'users_id'); } public function aif(){ // return $this->hasMany(MarketplaceAlternativeInvestmentFundSeller::class,'seller_forms_id')->where('listing_status', '!=','Hide')->where('status','Approved'); // return return $this->hasMany(MarketplaceAlternativeInvestmentFundSeller::class,'seller_forms_id')->where('status','Approved')->where('no_of_units_you_wish_to_sell','!=',0); // dd($data); // return $this->hasMany(MarketplaceAlternativeInvestmentFundSeller::class,'seller_forms_id'); } public function fre(){ // return $this->hasMany(MarketplaceFractionalRealEstateSeller::class,'seller_forms_id')->where('listing_status', '!=','Hide')->where('status','Approved'); return $this->hasMany(MarketplaceFractionalRealEstateSeller::class,'seller_forms_id')->where('status','Approved')->where('current_market_value_of_the_property','!=',0); // $data = $this->hasMany(MarketplaceFractionalRealEstateSeller::class,'seller_forms_id')->where('status','Approved'); // dd($data); } public function op(){ return $this->hasMany(MarketplaceOtherProductsSeller::class,'seller_forms_id')->where('listing_status', '!=','Hide'); } }