Implementing the media relation trait

parent 4e746518
...@@ -5,12 +5,13 @@ namespace Modules\Page\Entities; ...@@ -5,12 +5,13 @@ namespace Modules\Page\Entities;
use Dimsav\Translatable\Translatable; use Dimsav\Translatable\Translatable;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Modules\Core\Traits\NamespacedEntity; use Modules\Core\Traits\NamespacedEntity;
use Modules\Media\Support\Traits\MediaRelation;
use Modules\Tag\Contracts\TaggableInterface; use Modules\Tag\Contracts\TaggableInterface;
use Modules\Tag\Traits\TaggableTrait; use Modules\Tag\Traits\TaggableTrait;
class Page extends Model implements TaggableInterface class Page extends Model implements TaggableInterface
{ {
use Translatable, TaggableTrait, NamespacedEntity; use Translatable, TaggableTrait, NamespacedEntity, MediaRelation;
protected $table = 'page__pages'; protected $table = 'page__pages';
public $translatedAttributes = [ public $translatedAttributes = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment