Changeset 4b7e2d3 for app/Exports
- Timestamp:
- 10/23/21 04:03:46 (3 years ago)
- Branches:
- develop, master
- Children:
- b39afb5
- Parents:
- c6b84df
- Location:
- app/Exports
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Exports/FilesExport.php
rc6b84df r4b7e2d3 5 5 use App\Models\File; 6 6 use App\Models\Folder; 7 use App\Models\User;8 7 use Maatwebsite\Excel\Concerns\FromCollection; 9 8 use Maatwebsite\Excel\Concerns\WithHeadings; … … 26 25 $row->location, 27 26 $row->getSize($row->location) . ' MB', 28 $row-> Folder::find($row->folder_id)->name . ' - ' . Folder::find($row->folder_id)->arch_id,27 $row->folder_id . ' - ' . Folder::find($row->folder_id)->name . ' - ' . Folder::find($row->folder_id)->arch_id, 29 28 $row->created_at, 30 29 $row->updated_at … … 40 39 'Location', 41 40 'Size', 42 ' Folder - Archive ID',41 'ID - Folder - Archive ID', 43 42 'Created at', 44 43 'Updated at' -
app/Exports/FoldersExport.php
rc6b84df r4b7e2d3 5 5 use App\Models\Department; 6 6 use App\Models\Folder; 7 use App\Models\User; 7 8 use Maatwebsite\Excel\Concerns\FromCollection; 8 9 use Maatwebsite\Excel\Concerns\WithHeadings; … … 26 27 $row->note, 27 28 $row->location, 28 $row-> User::find($row->user_id)->username,29 $row->user_id . ' - ' . User::find($row->user_id)->username, 29 30 $row->Department::find($row->department_id)->name . ' - ' . Department::find($row->department_id)->code, 30 31 $row->is_important, … … 43 44 'Note', 44 45 'Location', 45 'Created by ',46 'Created by ID - Username', 46 47 'Department name - code', 47 48 'Is important', -
app/Exports/UsersExport.php
rc6b84df r4b7e2d3 28 28 $row->phone_number, 29 29 $row->is_confirmed, 30 $row-> Role::find($row->role_id)->name,30 $row->role_id . ' - ' . Role::find($row->role_id)->name, 31 31 $row->where('id', $row->created_by)->pluck('username')->first(), 32 32 $row->created_at, … … 46 46 'Phone number', 47 47 'Is confirmed', 48 'Role ',48 'Role ID - Username', 49 49 'Created by', 50 50 'Created at',
Note:
See TracChangeset
for help on using the changeset viewer.