src/Http/Controllers/Adminarea/AccountPasswordController.php
public function update(AccountPasswordRequest $request)
    {
        $currentUser = $request->user($this->getGuard());

        // Update profile
        $currentUser->fill(['password' => $request->get('new_password')])->forceSave();

        return intend([
            'back' => true,
            'with' => ['success' => trans('cortex/auth::messages.account.updated_password')],
        ]);
    }
public function update(AccountPasswordRequest $request)
    {
        $currentUser = $request->user($this->getGuard());

        // Update profile
        $currentUser->fill(['password' => $request->get('new_password')])->forceSave();

        return intend([
            'back' => true,
            'with' => ['success' => trans('cortex/auth::messages.account.updated_password')],
        ]);
    }
public function update ( AccountPasswordRequest $ request ) { $ currentUser = $ request -> user ( $ this -> getGuard ( ) ) ; // Update profile $ currentUser -> fill ( [ 'password' => $ request -> get ( 'new_password' ) ] ) -> forceSave ( ) ; return intend ( [ 'back' => true , 'with' => [ 'success' => trans ( 'cortex/auth::messages.account.updated_password' ) ] , ] ) ; }
Update account password.

@param \Cortex\Auth\Http\Requests\Adminarea\AccountPasswordRequest $request

@return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
Update account password .