From d185c154cbf89b7633d665396e1a2e89a33a39eb Mon Sep 17 00:00:00 2001 From: vanadium23 Date: Mon, 28 Oct 2013 23:13:43 +0400 Subject: [PATCH] Adding token to basicPurgeFilters --- src/LaravelBook/Ardent/Ardent.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/LaravelBook/Ardent/Ardent.php b/src/LaravelBook/Ardent/Ardent.php index dbec390..567251e 100644 --- a/src/LaravelBook/Ardent/Ardent.php +++ b/src/LaravelBook/Ardent/Ardent.php @@ -639,6 +639,11 @@ protected function addBasicPurgeFilters() { return false; } + // "_token" is used by Illuminate\Html\FormBuilder to add CSRF protection + if (strcmp($attributeKey, '_token') === 0) { + return false; + } + return true; };