src/Http/Controllers/Adminarea/AccountAttributesController.php
public function update(AccountAttributesRequest $request)
    {
        $data = $request->validated();
        $currentUser = $request->user($this->getGuard());

        // Update profile
        $currentUser->fill($data)->save();

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

        // Update profile
        $currentUser->fill($data)->save();

        return intend([
            'back' => true,
            'with' => ['success' => trans('cortex/auth::messages.account.updated_attributes')],
        ]);
    }
public function update ( AccountAttributesRequest $ request ) { $ data = $ request -> validated ( ) ; $ currentUser = $ request -> user ( $ this -> getGuard ( ) ) ; // Update profile $ currentUser -> fill ( $ data ) -> save ( ) ; return intend ( [ 'back' => true , 'with' => [ 'success' => trans ( 'cortex/auth::messages.account.updated_attributes' ) ] , ] ) ; }
Update account attributes.

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

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