Skip to content

Commit

Permalink
fix: check for the csrf config file during initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnsultan authored Oct 5, 2024
1 parent 2fe6dc3 commit 7f040c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Anchor.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class Anchor
*/
public static function config($config = null)
{
if (file_exists('config/csrf.php')) {
static::$config = require 'config/csrf.php';
}

if ($config === null) {
return static::$config;
}
Expand Down

0 comments on commit 7f040c0

Please sign in to comment.