hasMany(BranchDocument::class); } } class BranchDocument extends Model { protected $fillable = [ 'branch_id', 'name', 'document_number', 'path', 'expiry_date', 'reminder_days' ]; public function branch() { return $this->belongsTo(Branch::class); } }