Ignore:
Timestamp:
10/23/21 04:03:46 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
b39afb5
Parents:
c6b84df
Message:

bug fixes, edited export, added fileSeeder for DB testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Exports/FoldersExport.php

    rc6b84df r4b7e2d3  
    55use App\Models\Department;
    66use App\Models\Folder;
     7use App\Models\User;
    78use Maatwebsite\Excel\Concerns\FromCollection;
    89use Maatwebsite\Excel\Concerns\WithHeadings;
     
    2627            $row->note,
    2728            $row->location,
    28             $row->User::find($row->user_id)->username,
     29            $row->user_id . ' - ' . User::find($row->user_id)->username,
    2930            $row->Department::find($row->department_id)->name . ' - ' . Department::find($row->department_id)->code,
    3031            $row->is_important,
     
    4344            'Note',
    4445            'Location',
    45             'Created by',
     46            'Created by ID - Username',
    4647            'Department name - code',
    4748            'Is important',
Note: See TracChangeset for help on using the changeset viewer.