]> BookStack Code Mirror - bookstack/blob - app/Actions/Tag.php
Removed generic "UploadService" which was doing very little
[bookstack] / app / Actions / Tag.php
1 <?php namespace BookStack\Actions;
2
3 use BookStack\Model;
4
5 /**
6  * Class Attribute
7  * @package BookStack
8  */
9 class Tag extends Model
10 {
11     protected $fillable = ['name', 'value', 'order'];
12     protected $hidden = ['id', 'entity_id', 'entity_type'];
13
14     /**
15      * Get the entity that this tag belongs to
16      * @return \Illuminate\Database\Eloquent\Relations\MorphTo
17      */
18     public function entity()
19     {
20         return $this->morphTo('entity');
21     }
22 }