Changeset 0a1fb54 for app/Http/Controllers/Dashboard/UsersController.php
- Timestamp:
- 11/23/21 22:01:52 (3 years ago)
- Branches:
- master
- Children:
- dbc5976
- Parents:
- 4d73966
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/Dashboard/UsersController.php
r4d73966 r0a1fb54 27 27 return view("dashboard.users.index")->with([ 28 28 "users" => User::all(), 29 "roles" => Role::all(), 30 "adminAndReferents" => User::where("role_id", 1)->orWhere("role_id", 2)->get() 31 ]); 32 } 33 34 public function create() 35 { 36 return view("dashboard.users.create")->with([ 37 "roles" => Role::all(), 29 "roles" => Role::all() 38 30 ]); 39 31 } … … 77 69 } 78 70 79 public function editShow($id)80 {81 return view("dashboard.users.edit")->with([82 "user" => User::findOrFail($id),83 "roles" => Role::all(),84 ]);85 }86 87 71 public function edit(UpdateUserRequest $request, $id) 88 72 { … … 110 94 111 95 if($user->isDirty('email')) { 96 $user->is_active = false; 97 $user->security_code = $user->generateSecurityCode(); 98 $user->verify_token = $user->generateVerifyToken(); 112 99 $user->notify(new VerifyNewEmail($user)); 113 100 } 101 114 102 $user->save(); 115 103
Note:
See TracChangeset
for help on using the changeset viewer.