Files
freeu-project/app/Models/MarketplaceSellerForm.php

36 lines
1.4 KiB
PHP
Raw Normal View History

2024-03-28 14:52:40 +05:30
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MarketplaceSellerForm extends Model
{
use HasFactory;
protected $fillable = ['users_id','name','city','country','postal_code','contact_number','email','declaration'];
public function users(){
return $this->belongsTo(User::class);
}
public function aif(){
2024-05-02 15:22:44 +05:30
// return $this->hasMany(MarketplaceAlternativeInvestmentFundSeller::class,'seller_forms_id')->where('listing_status', '!=','Hide')->where('status','Approved');
return $this->hasMany(MarketplaceAlternativeInvestmentFundSeller::class,'seller_forms_id')->where('status','Approved');
2024-04-26 18:40:07 +05:30
// return $this->hasMany(MarketplaceAlternativeInvestmentFundSeller::class,'seller_forms_id');
2024-03-28 14:52:40 +05:30
}
public function fre(){
2024-05-02 15:22:44 +05:30
// 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');
2024-05-10 11:52:09 +05:30
// $data = $this->hasMany(MarketplaceFractionalRealEstateSeller::class,'seller_forms_id')->where('status','Approved');
// dd($data);
2024-03-28 14:52:40 +05:30
}
public function op(){
return $this->hasMany(MarketplaceOtherProductsSeller::class,'seller_forms_id')->where('listing_status', '!=','Hide');
}
}