<?php

namespace Modules\Partner\Models;

use Modules\Slider\Models\PartnerDescription;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;

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

    protected $fillable = [
        'image'
    ];


    /**
     * Get current description of the the Room
     * @return HasOne
     */
    public function currentDescription() :HasOne
    {
        return $this->hasOne(PartnerDescription::class)->where('language_id', currentLanguage()->id);
    }
}
