florida_gym/app/Models/Investor.php
2026-03-17 04:50:00 +05:30

30 lines
558 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Investor extends Model
{
protected $fillable = [
'name',
'investment_date',
'investment_amount',
'applicable_to_all_branches',
'roi_type',
'roi_value',
'roi_period',
'security_proof_document'
];
public function branches()
{
return $this->belongsToMany(Branch::class, 'investor_branch');
}
public function payouts()
{
return $this->hasMany(InvestorPayout::class);
}
}