[ 'required', 'string', 'min:2', 'max:64', Rule::unique('mounts', 'name')->ignore($ignore), ], 'description' => ['nullable', 'string', 'max:191'], 'source' => [ 'required', 'string', 'starts_with:/', new NotInPathHierarchy(Mount::$protectedSourcePaths), new NotInPathHierarchy(Mount::$invalidSourcePaths, includeDescendants: false), ], 'target' => [ 'required', 'string', 'starts_with:/', new NotInPathHierarchy(Mount::$invalidTargetPaths, includeDescendants: false), ], 'read_only' => ['sometimes', 'boolean'], 'user_mountable' => ['sometimes', 'boolean'], ]; } }