Changeset c6b84df for app/Http/Controllers/Dashboard/UsersController.php
- Timestamp:
- 10/21/21 23:45:59 (3 years ago)
- Branches:
- develop, master
- Children:
- 4b7e2d3
- Parents:
- 6b95845
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/Dashboard/UsersController.php
r6b95845 rc6b84df 24 24 { 25 25 return view("dashboard.users.index")->with([ 26 "users" => User::all() 26 "users" => User::all(), 27 "roles" => Role::all(), 27 28 ]); 28 29 } … … 62 63 $user->avatar = $avatarName; 63 64 } 65 66 $user->created_by = auth()->user()->id; 64 67 $user->save(); 65 68 … … 88 91 $user->phone_number = $request->phone_number; 89 92 $user->role_id = $request->userRole; 90 $user->updated_at = $request->Carbon::now();;93 $user->updated_at = Carbon::now(); 91 94 92 95 if ($request->hasFile("avatar")) {
Note:
See TracChangeset
for help on using the changeset viewer.