1 | <?php namespace GeneaLabs\LaravelModelCaching\Tests\Fixtures; |
||
11 | class Book extends Model |
||
12 | { |
||
13 | use Cachable; |
||
14 | |||
15 | protected $casts = [ |
||
16 | 'price' => 'float', |
||
17 | ]; |
||
18 | protected $dates = [ |
||
19 | 'published_at', |
||
20 | ]; |
||
21 | protected $fillable = [ |
||
22 | "author_id", |
||
23 | 'description', |
||
24 | 'published_at', |
||
25 | 'title', |
||
26 | "publisher_id", |
||
27 | 'price', |
||
28 | ]; |
||
29 | |||
30 | public function author() : BelongsTo |
||
34 | |||
35 | public function comments() : MorphMany |
||
39 | |||
40 | public function image() : MorphOne |
||
44 | |||
45 | public function publisher() : BelongsTo |
||
49 | |||
50 | public function stores() : BelongsToMany |
||
54 | |||
55 | public function scopeStartsWith(Builder $query, string $startOfName) : Builder |
||
59 | } |
||
60 |