1 | <?php |
||
7 | class DataTablesServiceProvider extends ServiceProvider |
||
8 | { |
||
9 | /** |
||
10 | * Register the service provider. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | 7 | public function register() |
|
23 | |||
24 | /** |
||
25 | * Replace the original DataTables bindings. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | 7 | protected function replaceBindings() |
|
38 | |||
39 | /** |
||
40 | * Configure DataTables. |
||
41 | * |
||
42 | * - Restore the default "builders" configuration, see https://github.com/yajra/laravel-datatables/pull/1462/commits/afdbe6bce9ade9b19d66034ace3d8a2c24da8a56 |
||
43 | * - Configure our custom DataTable service stub for "datatables:make" command |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | 7 | protected function configureDataTables() |
|
60 | |||
61 | /** |
||
62 | * Merge the given configuration with the existing configuration. |
||
63 | * |
||
64 | * @param string $key |
||
65 | * @param array $config |
||
66 | * @return void |
||
67 | */ |
||
68 | 7 | protected function mergeConfig($key, array $config) |
|
74 | } |
||
75 |