diff --git a/src/Mitch/Hashids/HashidsServiceProvider.php b/src/Mitch/Hashids/HashidsServiceProvider.php index 0e5adf8..e33eb90 100644 --- a/src/Mitch/Hashids/HashidsServiceProvider.php +++ b/src/Mitch/Hashids/HashidsServiceProvider.php @@ -30,7 +30,7 @@ protected function registerHashids() { $this->app->bind('Hashids\Hashids', function ($app) { return new Hashids( - $app['config']['app.key'], + isset($app['config']['hashids::salt']) ? $app['config']['hashids::salt'] : $app['config']['app.key'], $app['config']['hashids::length'], $app['config']['hashids::alphabet'] );