App\Http\Controllers\ProfilesController::edit PHP Method

edit() public method

profiles/username/edit
public edit ( $username ) : mixed
$username
return mixed
    public function edit($username)
    {
        try {
            $user = $this->getUserByUsername($username);
        } catch (ModelNotFoundException $e) {
            return view('pages.status')->with('error', \Lang::get('profile.notYourProfile'))->with('error_title', \Lang::get('profile.notYourProfileTitle'));
        }
        return view('profiles.edit')->withUser($user);
    }