File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,29 @@ This package is a plugin of [Laravel DataTables](https://github.com/yajra/larave
31
31
32
32
` composer require yajra/laravel-datatables-html:^10 `
33
33
34
- #### Service Provider (Optional on Laravel 5.5+)
35
-
36
- ` Yajra\DataTables\HtmlServiceProvider::class `
34
+ #### Setup scripts with ViteJS
35
+
36
+ Set the default javascript type to ` module ` by setting ` Builder::useVite() ` in the ` AppServiceProvider ` .
37
+
38
+ ``` php
39
+ namespace App\Providers;
40
+
41
+ use Illuminate\Pagination\Paginator;
42
+ use Illuminate\Support\ServiceProvider;
43
+ use Yajra\DataTables\Html\Builder;
44
+
45
+ class AppServiceProvider extends ServiceProvider
46
+ {
47
+ /**
48
+ * Bootstrap any application services.
49
+ */
50
+ public function boot(): void
51
+ {
52
+ Paginator::useBootstrapFive();
53
+ Builder::useVite();
54
+ }
55
+ }
56
+ ```
37
57
38
58
#### Publish Assets (Optional)
39
59
You can’t perform that action at this time.
0 commit comments