????

Your IP : 3.149.230.234


Current Path : /home/thenclexdoctor.com/.trash/app/Models/
Upload File :
Current File : /home/thenclexdoctor.com/.trash/app/Models/Filter.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Astrotomic\Translatable\Contracts\Translatable as TranslatableContract;
use Astrotomic\Translatable\Translatable;

class Filter extends Model implements TranslatableContract
{
    use Translatable;

    protected $table = 'filters';
    public $timestamps = false;
    protected $guarded = ['id'];

    public $translatedAttributes = ['title'];

    public function getTitleAttribute()
    {
        return getTranslateAttributeValue($this, 'title');
    }


    public function category()
    {
        return $this->belongsTo('App\Models\Category', 'category_id', 'id');
    }

    public function options()
    {
        return $this->hasMany('App\Models\FilterOption', 'filter_id', 'id')->orderBy('order', 'asc');
    }
}

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...