We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4c0d8 commit 6ec2ae9Copy full SHA for 6ec2ae9
app/Models/Mount.php
@@ -43,13 +43,8 @@ class Mount extends Model
43
*
44
* @var array
45
*/
46
- protected $attributes = [
+ protected $casts = [
47
'id' => 'int',
48
- 'uuid' => 'string',
49
- 'name' => 'string',
50
- 'description' => 'string',
51
- 'source' => 'string',
52
- 'target' => 'string',
53
'read_only' => 'bool',
54
'user_mountable' => 'bool',
55
];
@@ -60,7 +55,6 @@ class Mount extends Model
60
* @var string
61
56
62
57
public static $validationRules = [
63
- // 'uuid' => 'required|string|size:36|unique:mounts,uuid',
64
58
'name' => 'required|string|min:2|max:64|unique:mounts,name',
65
59
'description' => 'nullable|string|max:255',
66
'source' => 'required|string',
0 commit comments