????

Your IP : 18.191.254.28


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

<?php

namespace App\Models;

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

class ProductSpecification extends Model implements TranslatableContract
{
    use Translatable;

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

    static $inputTypes = ['textarea', 'multi_value'];

    public $translatedAttributes = ['title'];

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


    public function categories()
    {
        return $this->hasMany('App\Models\ProductSpecificationCategory', 'specification_id', 'id');
    }

    public function multiValues()
    {
        return $this->hasMany('App\Models\ProductSpecificationMultiValue', 'specification_id', 'id');
    }

    public function createName()
    {
        return str_replace(' ', '_', $this->title);
    }
}

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...