Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit a752c65

Browse files
committed
Merge pull request #117 from vanadium23/master
Adding token to basicPurgeFilters
2 parents 7f256e8 + d185c15 commit a752c65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/LaravelBook/Ardent/Ardent.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,11 @@ protected function addBasicPurgeFilters() {
639639
return false;
640640
}
641641

642+
// "_token" is used by Illuminate\Html\FormBuilder to add CSRF protection
643+
if (strcmp($attributeKey, '_token') === 0) {
644+
return false;
645+
}
646+
642647
return true;
643648
};
644649

0 commit comments

Comments
 (0)