File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed
src/Illuminate/Foundation/Http/Middleware Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
trait ExcludesPaths
6
6
{
7
- /**
8
- * The URIs that should be excluded.
9
- *
10
- * @var array<int, string>
11
- */
12
- protected $ except = [];
13
-
14
7
/**
15
8
* Determine if the request has a URI that should be excluded.
16
9
*
@@ -39,6 +32,6 @@ protected function inExceptArray($request)
39
32
*/
40
33
public function getExcludedPaths ()
41
34
{
42
- return $ this ->except ;
35
+ return $ this ->except ?? [] ;
43
36
}
44
37
}
Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ class PreventRequestsDuringMaintenance
21
21
*/
22
22
protected $ app ;
23
23
24
+ /**
25
+ * The URIs that should be excluded.
26
+ *
27
+ * @var array<int, string>
28
+ */
29
+ protected $ except = [];
30
+
24
31
/**
25
32
* The URIs that should be accessible during maintenance.
26
33
*
Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ class VerifyCsrfToken
34
34
*/
35
35
protected $ encrypter ;
36
36
37
+ /**
38
+ * The URIs that should be excluded.
39
+ *
40
+ * @var array<int, string>
41
+ */
42
+ protected $ except = [];
43
+
37
44
/**
38
45
* The globally ignored URIs that should be excluded from CSRF verification.
39
46
*
You can’t perform that action at this time.
0 commit comments