????

Your IP : 3.14.73.0


Current Path : /home/thenclexdoctor.com/public_html/app/Models/Api/
Upload File :
Current File : /home/thenclexdoctor.com/public_html/app/Models/Api/BlogCategory.php

<?php

namespace App\Models\Api;

use Illuminate\Database\Eloquent\Model;
use Astrotomic\Translatable\Contracts\Translatable as TranslatableContract;
use Astrotomic\Translatable\Translatable;
class BlogCategory extends Model  implements TranslatableContract
{
    use Translatable;

    public $translatedAttributes = ['title'];

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

    //
    public function getDetailsAttribute(){
        return [
            'id'=>$this->id ,
            'title'=>$this->title
        ] ;
    }
}

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...