From 362352fe3934dcd045371e46eed8ee39b337b840 Mon Sep 17 00:00:00 2001 From: Abdulbasit Rubeya Date: Thu, 10 Oct 2024 16:53:21 +0300 Subject: [PATCH] fix: load the configuration first before init csrf --- src/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index 9a693be..d8890bf 100755 --- a/src/App.php +++ b/src/App.php @@ -204,8 +204,8 @@ public function csrf($options = []) } if (!Anchor\CSRF::token()) { - Anchor\CSRF::init(); Anchor\CSRF::config($options); + Anchor\CSRF::init(); } $this->use(function () {