Skip to content

Commit 2715acb

Browse files
committed
publish assets only for console
1 parent c6de7a1 commit 2715acb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/HtmlServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public function boot()
1616
{
1717
$this->loadViewsFrom(__DIR__ . '/resources/views', 'datatables');
1818

19-
$this->publishAssets();
19+
if ($this->app->runningInConsole()) {
20+
$this->publishAssets();
21+
}
2022
}
2123

2224
/**

0 commit comments

Comments
 (0)