Skip to content

Commit eba8803

Browse files
authored
add HandlePrecognitiveRequests for frontend rules validation
1 parent a48d5ab commit eba8803

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Rest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public function resource(string $name, string $controller, array $options = [])
3636
$controller,
3737
$options
3838
))
39-
->middleware(EnforceExpectsJson::class);
39+
->middleware(EnforceExpectsJson::class)
40+
->middleware(HandlePrecognitiveRequests::class);
4041
}
4142

4243
/**

0 commit comments

Comments
 (0)