]> BookStack Code Mirror - bookstack/blob - app/Actions/Tag.php
Update entities.php
[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
13     /**
14      * Get the entity that this tag belongs to
15      * @return \Illuminate\Database\Eloquent\Relations\MorphTo
16      */
17     public function entity()
18     {
19         return $this->morphTo('entity');
20     }
21 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.