????
Current Path : /home/thenclexdoctor.com/public_html/app/Models/ |
Current File : /home/thenclexdoctor.com/public_html/app/Models/ProductBadge.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 ProductBadge extends Model implements TranslatableContract { use Translatable; protected $table = "product_badges"; public $timestamps = false; protected $dateFormat = 'U'; protected $guarded = ['id']; public $translatedAttributes = ['title']; public function getTitleAttribute() { return getTranslateAttributeValue($this, 'title'); } /******** * Relations * ******/ public function contents() { return $this->hasMany('App\Models\ProductBadgeContent', 'product_badge_id', 'id'); } }
Sorry, this page is not available...