File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -336,14 +336,17 @@ public function boot()
336336 */
337337 public function register ()
338338 {
339- /*
339+ /*
340340 * Register the service provider for the dependency.
341341 */
342342 $ this ->app ->register (\Collective \Html \HtmlServiceProvider::class);
343343 $ this ->app ->register (\Intervention \Image \ImageServiceProvider::class);
344344 $ this ->app ->register (\Jenssegers \Date \DateServiceProvider::class);
345345 $ this ->app ->register (\Mews \Purifier \PurifierServiceProvider::class);
346- $ this ->app ->register (\Yajra \Datatables \DatatablesServiceProvider::class);
346+ if (class_exists ('\Yajra\DataTables\DataTablesServiceProvider ' )){
347+ $ this ->app ->register (\Yajra \DataTables \DataTablesServiceProvider::class);
348+ }else
349+ $ this ->app ->register (\Yajra \Datatables \DatatablesServiceProvider::class);
347350
348351 /*
349352 * Create aliases for the dependency.
You can’t perform that action at this time.
0 commit comments