develop
Last change
on this file since c6b84df was c6b84df, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added fileTypes controller, notifications, excel export, edited views
|
-
Property mode
set to
100644
|
File size:
835 bytes
|
Rev | Line | |
---|
[c6b84df] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace App\Http\Controllers\Dashboard;
|
---|
| 4 |
|
---|
| 5 | use App\Exports\FilesExport;
|
---|
| 6 | use App\Exports\FoldersExport;
|
---|
| 7 | use App\Exports\UsersExport;
|
---|
| 8 | use App\Http\Controllers\Controller;
|
---|
| 9 | use Carbon\Carbon;
|
---|
| 10 | use Illuminate\Support\Facades\DB;
|
---|
| 11 | use Maatwebsite\Excel\Concerns\WithHeadings;
|
---|
| 12 | use Maatwebsite\Excel\Facades\Excel;
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 | class ExportExcelController extends Controller
|
---|
| 16 | {
|
---|
| 17 | public function ExportUsers()
|
---|
| 18 | {
|
---|
| 19 | return Excel::download(new UsersExport(), Carbon::now()->format('d.m.Y - H:i') . ' - users.xlsx');
|
---|
| 20 |
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | public function ExportFolders()
|
---|
| 24 | {
|
---|
| 25 | return Excel::download(new FoldersExport(), Carbon::now()->format('d.m.Y - H:i') . ' - folders.xlsx');
|
---|
| 26 |
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | public function ExportFiles()
|
---|
| 30 | {
|
---|
| 31 | return Excel::download(new FilesExport(), Carbon::now()->format('d.m.Y - H:i') . ' - files.xlsx');
|
---|
| 32 |
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.