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