Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
Restoring some items post rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
weerd committed Aug 3, 2020
1 parent 6c6687a commit ad4ef05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Closure;
use Hashids\Hashids;
use Rogue\Models\Post;
use InvalidArgumentException;
use Rogue\Observers\PostObserver;
use Illuminate\Support\Facades\Log;
Expand Down Expand Up @@ -33,6 +34,9 @@ public function register()
*/
public function boot()
{
// Attach model observer(s):
Post::observe(PostObserver::class);

$this->app->singleton(Hashids::class, function ($app) {
return new Hashids(config('app.key'), 10);
});
Expand Down

0 comments on commit ad4ef05

Please sign in to comment.