관리-도구
편집 파일: FastExcelServiceProvider.php
<?php namespace Rap2hpoutre\FastExcel\Providers; use Illuminate\Support\ServiceProvider; class FastExcelServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { // } /** * Register any application services. * * @SuppressWarnings("unused") * * @return void */ public function register() { $this->app->bind('fastexcel', function ($app, $data = null) { if (is_array($data)) { $data = collect($data); } return new \Rap2hpoutre\FastExcel\FastExcel($data); }); } }