Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit b67c25e

Browse files
author
Donald Pakkies
committed
ref: cleaned up the shouldIgnore method
1 parent 33df328 commit b67c25e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Middleware/VerifyCsrfToken.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,13 @@ protected function isReading($request) : bool
7474
*/
7575
protected function shouldIgnore($request) : bool
7676
{
77-
$this->createUrl($request, 'except');
78-
if (in_array($request->path(), $this->except)) return true;
77+
/** create url */
78+
$this->createUrl(
79+
$request,
80+
'except'
81+
);
7982

80-
return false;
83+
return in_array($request->path(), $this->except) ? true : false;
8184
}
8285

8386
/**

0 commit comments

Comments
 (0)