Skip to content

Commit d340675

Browse files
committed
Export class
1 parent 0f98324 commit d340675

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ObjectsExport<?php
1+
<?php
22

33
namespace TypiCMS\Modules\Objects\Exports;
44

@@ -14,7 +14,7 @@
1414
use TypiCMS\Modules\Core\Filters\FilterOr;
1515
use TypiCMS\Modules\Objects\Models\Object;
1616

17-
class ObjectsExport implements WithColumnFormatting, ShouldAutoSize, FromCollection, WithHeadings, WithMapping
17+
class Export implements WithColumnFormatting, ShouldAutoSize, FromCollection, WithHeadings, WithMapping
1818
{
1919
protected $collection;
2020

src/Http/Controllers/AdminController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Illuminate\View\View;
88
use Maatwebsite\Excel\Facades\Excel;
99
use TypiCMS\Modules\Core\Http\Controllers\BaseAdminController;
10-
use TypiCMS\Modules\Objects\Exports\ObjectsExport;
10+
use TypiCMS\Modules\Objects\Exports\Export;
1111
use TypiCMS\Modules\Objects\Http\Requests\FormRequest;
1212
use TypiCMS\Modules\Objects\Models\Object;
1313

@@ -22,7 +22,7 @@ public function export(Request $request)
2222
{
2323
$filename = date('Y-m-d').' '.config('app.name').' objects.xlsx';
2424

25-
return Excel::download(new ObjectsExport($request), $filename);
25+
return Excel::download(new Export($request), $filename);
2626
}
2727

2828
public function create(): View

0 commit comments

Comments
 (0)