app->singleton(function (): HashidsInterface { $config = $this->app->make(Repository::class); return new Hashids( $config->string('hashids.salt', ''), $config->integer('hashids.length'), $config->string('hashids.alphabet', 'abcdefghijkmlnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890') ); }); $this->app->alias(HashidsInterface::class, 'hashids'); } }