Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
SearchIndex | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
record | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace Baril\Sqlout; |
4 | |
5 | use Illuminate\Database\Eloquent\Model; |
6 | |
7 | class SearchIndex extends Model |
8 | { |
9 | protected $fillable = [ |
10 | 'record_type', |
11 | 'record_id', |
12 | 'field', |
13 | 'weight', |
14 | 'content', |
15 | ]; |
16 | |
17 | /** |
18 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
19 | */ |
20 | public function record() |
21 | { |
22 | return $this->morphTo(); |
23 | } |
24 | } |