Skip to content

Commit 820225c

Browse files
committed
fix: add getHtmlBuilder macro
In relation to yajra/laravel-datatables@8dce00e
1 parent b214ac6 commit 820225c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/HtmlServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,9 @@ public function register(): void
3939
$this->app->bind('datatables.html', function () {
4040
return $this->app->make(Html\Builder::class);
4141
});
42+
43+
DataTables::macro('getHtmlBuilder', function (): Html\Builder {
44+
return app('datatables.html');
45+
});
4246
}
4347
}

0 commit comments

Comments
 (0)