Skip to content

Commit

Permalink
Merge pull request #2240 from mtvbrianking/9.0
Browse files Browse the repository at this point in the history
Cast database engines to array.
  • Loading branch information
yajra authored Nov 11, 2019
2 parents f512b4a + 9bbf033 commit 08ce168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataTablesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Yajra\DataTables;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use Yajra\DataTables\Utilities\Config;
use Illuminate\Support\ServiceProvider;
use Yajra\DataTables\Utilities\Request;

class DataTablesServiceProvider extends ServiceProvider
Expand Down Expand Up @@ -41,7 +41,7 @@ public function register()
*/
public function boot()
{
$engines = config('datatables.engines');
$engines = (array) config('datatables.engines');
foreach ($engines as $engine => $class) {
$engine = Str::camel($engine);

Expand Down

0 comments on commit 08ce168

Please sign in to comment.