Skip to content

Commit

Permalink
Merge pull request #207 from wujiechn/test
Browse files Browse the repository at this point in the history
Use dirname function to get the parent directory
  • Loading branch information
mewebstudio authored Nov 3, 2020
2 parents 1d5e24b + 1c002b2 commit b5549a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function __construct(
$this->hasher = $hasher;
$this->str = $str;
$this->characters = config('captcha.characters', ['1', '2', '3', '4', '6', '7', '8', '9']);
$this->fontsDirectory = config('captcha.fontsDirectory', __DIR__ . '/../assets/fonts');
$this->fontsDirectory = config('captcha.fontsDirectory', dirname(__DIR__) . '/assets/fonts');
}

/**
Expand Down

0 comments on commit b5549a9

Please sign in to comment.