crocodic-studio/crudbooster

View on GitHub
src/export/DefaultExportXls.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php


namespace crocodicstudio\crudbooster\export;


use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;

class DefaultExportXls implements FromView
{
    private $data;

    public function __construct($data)
    {
        $this->data = $data;
    }

    public function view(): View
    {
        return view("crudbooster::export",$this->data);
    }
}