Ignore:
Timestamp:
11/23/21 22:01:52 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
dbc5976
Parents:
4d73966
Message:

bug fixes

File:
1 edited

Legend:

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

    r4d73966 r0a1fb54  
    2121    public function settings()
    2222    {
    23         $fileType = FileType::find("1");
    24 
    2523        return view("dashboard.settings.index")->with([
    2624            "user" => auth()->user(),
    27             "adminAndReferents" => User::where("role_id", 1)->orWhere("role_id", 2)->get(),
    2825            "active_tab" => "account",
    29             "fileType" => $fileType
     26            "fileType" => FileType::find("1")
    3027        ]);
    3128    }
     
    3835            $user->save();
    3936
     37            Alert::flash("Username updated successfully");
     38
    4039            auth()->logout();
    4140            session()->flush();
    4241
    43             return redirect()->route("auth.loginShow");
     42            return redirect()->route("auth.showLogin");
    4443    }
    4544
     
    5150            $user->save();
    5251
     52            Alert::flash("Password updated successfully");
     53
    5354            auth()->logout();
    5455            session()->flush();
    5556
    56             return redirect()->route("auth.loginShow");
     57            return redirect()->route("auth.showLogin");
    5758    }
    5859
     
    7172        $user->notify(new VerifyNewEmail($user));
    7273
     74        Alert::flash("Email updated successfully");
     75
    7376        auth()->logout();
    7477        session()->flush();
    7578
    76         return redirect()->route("auth.loginShow");
     79        return redirect()->route("auth.showLogin");
    7780    }
    7881
Note: See TracChangeset for help on using the changeset viewer.