Skip to content

Commit

Permalink
Merge 91a01b5 into 9e4436a
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonis committed Sep 6, 2017
2 parents 9e4436a + 91a01b5 commit 464c40e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 11 additions & 1 deletion composer.json
Expand Up @@ -42,5 +42,15 @@
"Mews\\Test\\": "tests/"
}
},
"minimum-stability": "dev"
"minimum-stability": "dev",
"extra": {
"laravel": {
"providers": [
"Mews\\Captcha\\CaptchaServiceProvider"
],
"aliases": {
"Captcha": "Mews\\Captcha\\Facades\\Captcha"
}
}
}
}
3 changes: 3 additions & 0 deletions src/Captcha.php
Expand Up @@ -214,6 +214,9 @@ public function create($config = 'default')
{
$this->backgrounds = $this->files->files(__DIR__ . '/../assets/backgrounds');
$this->fonts = $this->files->files(__DIR__ . '/../assets/fonts');
$this->fonts = array_map(function($file) {
return $file->getPathName();
}, $this->fonts);
$this->fonts = array_values($this->fonts); //reset fonts array index

$this->configure($config);
Expand Down

0 comments on commit 464c40e

Please sign in to comment.