source: app/Http/Controllers/Dashboard/ExportExcelController.php@ c6b84df

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
Line 
1<?php
2
3namespace App\Http\Controllers\Dashboard;
4
5use App\Exports\FilesExport;
6use App\Exports\FoldersExport;
7use App\Exports\UsersExport;
8use App\Http\Controllers\Controller;
9use Carbon\Carbon;
10use Illuminate\Support\Facades\DB;
11use Maatwebsite\Excel\Concerns\WithHeadings;
12use Maatwebsite\Excel\Facades\Excel;
13
14
15class 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.