]> BookStack Code Mirror - bookstack/blob - app/SearchTerm.php
Updated Spanish translation
[bookstack] / app / SearchTerm.php
1 <?php namespace BookStack;
2
3 class SearchTerm extends Model
4 {
5
6     protected $fillable = ['term', 'entity_id', 'entity_type', 'score'];
7     public $timestamps = false;
8
9     /**
10      * Get the entity that this term belongs to
11      * @return \Illuminate\Database\Eloquent\Relations\MorphTo
12      */
13     public function entity()
14     {
15         return $this->morphTo('entity');
16     }
17 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.