1 | <?php |
||
10 | class LaravelBlog extends Model |
||
11 | { |
||
12 | use HasSlug; |
||
13 | use HasTags; |
||
14 | |||
15 | protected $table = 'blogs'; |
||
16 | |||
17 | protected $guarded = ['user_id', 'slug', 'created_at', 'updated_at']; |
||
18 | |||
19 | public function author() |
||
23 | |||
24 | public function category() |
||
28 | |||
29 | public function getSlugOptions(): SlugOptions |
||
35 | |||
36 | public function getRouteKeyName() |
||
40 | |||
41 | public function nextItem() |
||
47 | |||
48 | public function previousItem() |
||
54 | } |
||
55 |