????

Your IP : 18.216.45.231


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

<?php

namespace App\Models;

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

class AiContentTemplate extends Model implements TranslatableContract
{
    use Translatable;

    protected $table = "ai_content_templates";
    public $timestamps = false;
    protected $dateFormat = 'U';
    protected $guarded = ['id'];

    public $translatedAttributes = ['title', 'prompt'];


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

    public function getPromptAttribute()
    {
        return getTranslateAttributeValue($this, 'prompt');
    }


    /********
     * Relations
     * ******/

    public function contents()
    {
        return $this->hasMany(AiContent::class, 'service_id', 'id');
    }


}

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...