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

sendConfirmation() public method

public sendConfirmation ( $userPublicId )
    public function sendConfirmation($userPublicId)
    {
        $user = User::where('account_id', '=', Auth::user()->account_id)->where('public_id', '=', $userPublicId)->firstOrFail();
        $this->userMailer->sendConfirmation($user, Auth::user());
        Session::flash('message', trans('texts.sent_invite'));
        return Redirect::to('settings/' . ACCOUNT_USER_MANAGEMENT);
    }