Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Don't use env while caching
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
balping committed Jan 31, 2018
1 parent 5b0f3ce commit 3e41fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HasHashSlug.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static function getHashids(){
$alphabet = config('hashslug.alphabet', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890');
}

$salt = config('hashslug.appsalt', env('APP_KEY')) . $modelSalt;
$salt = config('hashslug.appsalt', config('app.key')) . $modelSalt;

// This is impotant!
// Don't use a weak hash, otherwise
Expand Down

0 comments on commit 3e41fe0

Please sign in to comment.