1 | <?php |
||
17 | class Image extends Model implements GuidedImage |
||
18 | { |
||
19 | use Guided; |
||
20 | |||
21 | /** |
||
22 | * Images table. |
||
23 | */ |
||
24 | protected $table = 'images'; |
||
25 | |||
26 | /** |
||
27 | * Set guard. |
||
28 | */ |
||
29 | protected $guarded = ['id', 'created_at', 'updated_at']; |
||
30 | |||
31 | /** |
||
32 | * Posts. |
||
33 | */ |
||
34 | public function posts() |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function isSafeForDelete(int $safeAmount = 1): bool |
||
51 | } |
||
52 |