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

edit() public method

public edit ( $publicId )
    public function edit($publicId)
    {
        $user = User::where('account_id', '=', Auth::user()->account_id)->where('public_id', '=', $publicId)->withTrashed()->firstOrFail();
        $data = ['user' => $user, 'method' => 'PUT', 'url' => 'users/' . $publicId];
        return View::make('users.edit', $data);
    }