Files
freeu-project/app/Models/MonthlyUpdateMaster.php
Ritikesh yadav 4884c51d9e fixing issues
2024-06-06 17:40:51 +05:30

37 lines
1.0 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MonthlyUpdateMaster extends Model
{
use HasFactory;
protected $fillable = ['users_id', 'categories', 'products_id', 'custom_id', 'investor_name', 'pan', 'product_category', 'investment_platform', 'product_name', 'counter_party', 'account_number', 'spv_details', 'class_of_units', 'fund_category'];
public function investor()
{
return $this->belongsTo(User::class, 'users_id');
}
public function products()
{
return $this->belongsTo(Product::class, 'products_id');
}
public function companies()
{
return $this->belongsTo(Company::class, 'investment_platform');
}
public function monthlyAIF()
{
return $this->hasOne(MonthlyUpdateAlternativeInvestmentFund::class,'custom_id','custom_id');
}
public function monthlyFRE()
{
return $this->hasOne(MonthlyUpdateFractionalRealEstate::class,'custom_id','custom_id');
}
}