Ignore:
Timestamp:
10/18/21 19:54:18 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
b9c4a92
Parents:
bd9e8e3
Message:

added pagination, is_important

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/Dashboard/DepartmentsController.php

    rbd9e8e3 re6c1f87  
    3636        $department->code = $request->code;
    3737
     38        $len = Storage::disk('local')->path('');
     39
    3840        if(!Storage::disk('local')->has('Departments/' . $request->code)){
    3941            Storage::disk('local')->makeDirectory('Departments/' . $request->code);
     
    4143
    4244        $department->user_id = auth()->id();
    43         $department->location = '/Departments/' . $request->code;
     45        $department->location =  Storage::disk('local')->path('') . 'Departments/' . $request->code;
    4446
    4547        $department->save();
     
    6567        $department->name = $request->name;
    6668        $department->code = $request->code;
    67         $department->updated_at = Carbon::now();;
    6869
    69         $path = '/Departments/' . $request->code;
    70         $department->location = $path;
     70        $department->location =  Storage::disk('local')->path('') . 'Departments/' . $request->code;
    7171
    7272        $files = Storage::allFiles($oldDepartmentCode);
Note: See TracChangeset for help on using the changeset viewer.