| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace GeneaLabs\LaravelModelCaching\Tests\Fixtures; |
||
| 7 | class Book extends CachedModel |
||
| 8 | { |
||
| 9 | protected $dates = [ |
||
| 10 | 'published_at', |
||
| 11 | ]; |
||
| 12 | protected $fillable = [ |
||
| 13 | 'description', |
||
| 14 | 'published_at', |
||
| 15 | 'title', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | public function author() : BelongsTo |
||
| 19 | { |
||
| 20 | return $this->belongsTo(Author::class); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function stores() : BelongsToMany |
||
| 26 | } |
||
| 27 | } |
||
| 28 |