]> BookStack Code Mirror - bookstack/blob - app/Actions/Tag.php
fix image delete confirm text
[bookstack] / app / Actions / Tag.php
1 <?php namespace BookStack\Actions;
2
3 use BookStack\Model;
4
5 class Tag extends Model
6 {
7     protected $fillable = ['name', 'value', 'order'];
8     protected $hidden = ['id', 'entity_id', 'entity_type', 'created_at', 'updated_at'];
9
10     /**
11      * Get the entity that this tag belongs to
12      * @return \Illuminate\Database\Eloquent\Relations\MorphTo
13      */
14     public function entity()
15     {
16         return $this->morphTo('entity');
17     }
18 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.