Skip to content

Commit ee5602a

Browse files
committed
Allow passing of constructor arguments on make method helper.
1 parent 6b9c42b commit ee5602a

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)