Ignore:
Timestamp:
10/21/21 23:45:59 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
4b7e2d3
Parents:
6b95845
Message:

added fileTypes controller, notifications, excel export, edited views

File:
1 edited

Legend:

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

    r6b95845 rc6b84df  
    2424    {
    2525        return view("dashboard.users.index")->with([
    26             "users" => User::all()
     26            "users" => User::all(),
     27            "roles" => Role::all(),
    2728        ]);
    2829    }
     
    6263            $user->avatar = $avatarName;
    6364        }
     65
     66        $user->created_by = auth()->user()->id;
    6467        $user->save();
    6568
     
    8891        $user->phone_number = $request->phone_number;
    8992        $user->role_id = $request->userRole;
    90         $user->updated_at = $request->Carbon::now();;
     93        $user->updated_at = Carbon::now();
    9194
    9295        if ($request->hasFile("avatar")) {
Note: See TracChangeset for help on using the changeset viewer.