<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;

class Partner extends Model
{
     //use soft delete
    use SoftDeletes;

    protected $fillable = [
        'image',
       
    ];
    public function photos () :HasMany
    {
        return $this->hasMany(PartnerPhoto::class);
    }
    public function details () :HasMany
    {
        return $this->hasMany(PartnerDetail::class);
    }
    
}
