ok

Mini Shell

Direktori : /home2/selectio/public_html/3-idiots/vendor/rap2hpoutre/fast-excel/src/functions/
Upload File :
Current File : /home2/selectio/public_html/3-idiots/vendor/rap2hpoutre/fast-excel/src/functions/fastexcel.php

<?php

use Rap2hpoutre\FastExcel\SheetCollection;

if (!function_exists('fastexcel')) {
    /**
     * Return app instance of FastExcel.
     *
     * @return Rap2hpoutre\FastExcel\FastExcel
     */
    function fastexcel($data = null)
    {
        if ($data instanceof SheetCollection) {
            return app()->make('fastexcel')->data($data);
        }

        if (is_object($data) && method_exists($data, 'toArray')) {
            $data = $data->toArray();
        }

        return $data === null ? app()->make('fastexcel') : app()->makeWith('fastexcel', $data);
    }
}

Zerion Mini Shell 1.0