gigiloouu
problem with exel uploader
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class HoldingCompany extends Model
{
use HasFactory;
protected $fillable = ['internal_company_name', 'identification_code', 'director_id'];
public function directors()
{
return $this->hasMany(Director::class, 'director_holding_company', 'holding_company_id', 'director_id');
}
public function directorHoldingCompany(): HasMany
{
return $this->hasMany(directorHoldingCompany::class);
}
}
14 replies