You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If published, the file will installed on `resources/views/vendor/datatables/script.blade.php`.
90
+
91
+
```php
92
+
'script_template' => 'datatables::script',
93
+
```
94
+
95
+
<aname="console"></a>
96
+
## Artisan Console Configurations
97
+
Namespace configuration is used by the datatables command generator.
98
+
99
+
```php
100
+
'namespace' => [
101
+
'base' => 'DataTables',
102
+
'model' => '',
103
+
],
104
+
```
105
+
106
+
### DataTable Base Namespace/Directory
107
+
This is the base namespace/directory to be created when a new DataTable was called.
108
+
This directory is appended on default Laravel namespace.
109
+
110
+
**Usage:**
111
+
```php artisan datatables:make User```
112
+
113
+
**Output:**
114
+
```App\DataTables\UserDataTable```
115
+
116
+
**Export filename:**```users_(timestamp)```
117
+
118
+
### Model Option
119
+
This is the base namespace/directory where your model's are located.
120
+
This directory is appended on default Laravel namespace.
121
+
**Usage:**```php artisan datatables:make Post --model```
122
+
**Output:**```App\DataTables\PostDataTable```
123
+
**With Model:** ```App\Post``
124
+
**Export filename:**```posts_(timestamp)```
125
+
126
+
## PDF Generator
127
+
Set the PDF generator to be used when converting your dataTable to pdf.
128
+
129
+
Available generators are: `excel`, `snappy`
130
+
131
+
### Excel Generator (Default Generator)
132
+
When `excel` is used as the generator, the package will use [`maatwebsite/excel`](http://www.maatwebsite.nl/laravel-excel/docs) to generate the PDF.
133
+
134
+
> To export files to pdf, you will have to include "dompdf/dompdf": "~0.6.1", "mpdf/mpdf": "~5.7.3" or "tecnick.com/tcpdf": "~6.0.0" in your composer.json and change the export.pdf.driver config setting accordingly.
135
+
136
+
### Snappy Generator
137
+
When `snappy` is used as the generator, you need to install [`barryvdh/laravel-snappy`](https://github.com/barryvdh/laravel-snappy)
138
+
139
+
### Snappy PDF Options
140
+
These are the options passed to `laravel-snappy` when exporting the pdf file.
0 commit comments