1 | <?php |
||
6 | class Category extends Model |
||
7 | { |
||
8 | use Sluggable; |
||
9 | |||
10 | /** |
||
11 | * The "booting" method of the model. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | protected static function boot() |
||
24 | |||
25 | /** |
||
26 | * Return the field to slug. |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public function slugStrategy(): string |
||
34 | |||
35 | /** |
||
36 | * Get the articles for the category. |
||
37 | * |
||
38 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
39 | */ |
||
40 | public function articles() |
||
44 | } |
||
45 |