File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 19
19
}
20
20
],
21
21
"require" : {
22
- "laravel-enso/core" : " ^9 .0" ,
22
+ "laravel-enso/core" : " ^10 .0" ,
23
23
"laravel-enso/helpers" : " ^3.0" ,
24
24
"laravel-enso/image-transformer" : " ^2.0" ,
25
25
"laravel-enso/migrator" : " ^2.0" ,
Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ class File extends Model
30
30
31
31
protected $ guarded = [];
32
32
33
- protected $ casts = ['is_public ' => 'boolean ' ];
34
-
35
33
public function type ()
36
34
{
37
35
return $ this ->belongsTo (Type::class);
@@ -196,4 +194,11 @@ public function isImage(BaseFile $file): bool
196
194
['file ' => "image|mimetypes: {$ mimeTypes }" ]
197
195
)->passes ();
198
196
}
197
+
198
+ protected function casts (): array
199
+ {
200
+ return [
201
+ 'is_public ' => 'boolean ' ,
202
+ ];
203
+ }
199
204
}
Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ class Type extends Model
22
22
23
23
protected $ guarded = [];
24
24
25
- protected $ casts = [
26
- 'is_browsable ' => 'boolean ' , 'is_system ' => 'boolean ' ,
27
- 'is_public ' => 'boolean ' ,
28
- ];
29
-
30
25
protected array $ rememberableKeys = ['id ' , 'model ' ];
31
26
32
27
public function files ()
@@ -97,4 +92,12 @@ public function move(): void
97
92
FileFacade::moveDirectory ($ from , $ to );
98
93
}
99
94
}
95
+
96
+ protected function casts (): array
97
+ {
98
+ return [
99
+ 'is_browsable ' => 'boolean ' , 'is_system ' => 'boolean ' ,
100
+ 'is_public ' => 'boolean ' ,
101
+ ];
102
+ }
100
103
}
You can’t perform that action at this time.
0 commit comments