Skip to content

Commit

Permalink
Merge pull request #38 from egs33/master
Browse files Browse the repository at this point in the history
Replace str_random function
  • Loading branch information
olssonm authored Sep 27, 2019
2 parents 3a23285 + 845ee2c commit f22a1ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/VeryBasicAuthServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php namespace Olssonm\VeryBasicAuth;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;

class VeryBasicAuthServiceProvider extends ServiceProvider
{
Expand Down Expand Up @@ -71,7 +72,7 @@ public function register()
private function createConfig()
{
$data = file_get_contents($this->stub);
$data = str_replace('%password%', str_random(8), $data);
$data = str_replace('%password%', Str::random(8), $data);
return file_put_contents($this->config, $data);
}
}

0 comments on commit f22a1ef

Please sign in to comment.