Skip to content

Commit

Permalink
Merge pull request #903 from ElfSundae/fix-singleton
Browse files Browse the repository at this point in the history
Add datatables alias to fix singleton.
  • Loading branch information
yajra committed Jan 4, 2017
2 parents 1253e17 + 2e78769 commit a6d48b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DatatablesServiceProvider.php
Expand Up @@ -83,6 +83,8 @@ public function register()
return new Datatables($this->app->make(Request::class));
});

$this->app->alias('datatables', Datatables::class);

$this->app->singleton('datatables.fractal', function () {
$fractal = new Manager;
$config = $this->app['config'];
Expand Down

0 comments on commit a6d48b1

Please sign in to comment.