src/Controllers/BatchController.php
public function export($page, $format)
    {
        $this->authorize('index', app('scaffold.module')->model());

        $query = app('scaffold.finder')->getQuery();

        return app('scaffold.actions')->exec('export', [$query, $format]);
    }
public function export($page, $format)
    {
        $this->authorize('index', app('scaffold.module')->model());

        $query = app('scaffold.finder')->getQuery();

        return app('scaffold.actions')->exec('export', [$query, $format]);
    }
public function export ( $ page , $ format ) { $ this -> authorize ( 'index' , app ( 'scaffold.module' ) -> model ( ) ) ; $ query = app ( 'scaffold.finder' ) -> getQuery ( ) ; return app ( 'scaffold.actions' ) -> exec ( 'export' , [ $ query , $ format ] ) ; }
Export collection.

@param $page
@param $format

@return mixed
Export collection .