<?php

namespace Modules\Brand\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;

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

    protected $fillable =
    [
        'logo','show_models','show_home'
    ];

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