Skip to content

Commit 6ec2ae9

Browse files
committed
Fix casting
1 parent 9a4c0d8 commit 6ec2ae9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/Models/Mount.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,8 @@ class Mount extends Model
4343
*
4444
* @var array
4545
*/
46-
protected $attributes = [
46+
protected $casts = [
4747
'id' => 'int',
48-
'uuid' => 'string',
49-
'name' => 'string',
50-
'description' => 'string',
51-
'source' => 'string',
52-
'target' => 'string',
5348
'read_only' => 'bool',
5449
'user_mountable' => 'bool',
5550
];
@@ -60,7 +55,6 @@ class Mount extends Model
6055
* @var string
6156
*/
6257
public static $validationRules = [
63-
// 'uuid' => 'required|string|size:36|unique:mounts,uuid',
6458
'name' => 'required|string|min:2|max:64|unique:mounts,name',
6559
'description' => 'nullable|string|max:255',
6660
'source' => 'required|string',

0 commit comments

Comments
 (0)