Changeset 0a1fb54 for app/Http/Controllers/Dashboard/SettingsController.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/SettingsController.php
r4d73966 r0a1fb54 21 21 public function settings() 22 22 { 23 $fileType = FileType::find("1");24 25 23 return view("dashboard.settings.index")->with([ 26 24 "user" => auth()->user(), 27 "adminAndReferents" => User::where("role_id", 1)->orWhere("role_id", 2)->get(),28 25 "active_tab" => "account", 29 "fileType" => $fileType26 "fileType" => FileType::find("1") 30 27 ]); 31 28 } … … 38 35 $user->save(); 39 36 37 Alert::flash("Username updated successfully"); 38 40 39 auth()->logout(); 41 40 session()->flush(); 42 41 43 return redirect()->route("auth. loginShow");42 return redirect()->route("auth.showLogin"); 44 43 } 45 44 … … 51 50 $user->save(); 52 51 52 Alert::flash("Password updated successfully"); 53 53 54 auth()->logout(); 54 55 session()->flush(); 55 56 56 return redirect()->route("auth. loginShow");57 return redirect()->route("auth.showLogin"); 57 58 } 58 59 … … 71 72 $user->notify(new VerifyNewEmail($user)); 72 73 74 Alert::flash("Email updated successfully"); 75 73 76 auth()->logout(); 74 77 session()->flush(); 75 78 76 return redirect()->route("auth. loginShow");79 return redirect()->route("auth.showLogin"); 77 80 } 78 81
Note:
See TracChangeset
for help on using the changeset viewer.