Skip to content

Commit 1e17733

Browse files
authored
Merge pull request #131 from yajra/patch-make
[4.x] Allow passing of constructor arguments on make method helper.
2 parents 6b9c42b + ee5602a commit 1e17733

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Html/DataTableHtml.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ abstract class DataTableHtml implements DataTableHtmlBuilder
2020
*/
2121
public static function make()
2222
{
23+
if (func_get_args()) {
24+
return (new static(...func_get_args()))->handle();
25+
}
26+
2327
return app(static::class)->handle();
2428
}
2529

0 commit comments

Comments
 (0)