Skip to content

Instantly share code, notes, and snippets.

@joetannenbaum
Created February 6, 2017 17:17
Show Gist options
  • Save joetannenbaum/cfbfd38a0475b43a7d9acfa8f17792fa to your computer and use it in GitHub Desktop.
Save joetannenbaum/cfbfd38a0475b43a7d9acfa8f17792fa to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
use Hashids\Hashids;
class AppServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->bind(Hashids::class, function () {
return new Hashids(env('HASHIDS_SALT'), 10);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment