src/CollectionDataTable.php
public static function create($source)
    {
        if (is_array($source)) {
            $source = new Collection($source);
        }

        return parent::create($source);
    }
public static function create($source)
    {
        if (is_array($source)) {
            $source = new Collection($source);
        }

        return parent::create($source);
    }
public static function create ( $ source ) { if ( is_array ( $ source ) ) { $ source = new Collection ( $ source ) ; } return parent :: create ( $ source ) ; }
Factory method, create and return an instance for the DataTable engine.

@param array|\Illuminate\Support\Collection $source
@return CollectionDataTable|DataTableAbstract
Factory method create and return an instance for the DataTable engine .