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

show() public method

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