public function store(AddressBookRequest $request)
    {
        if (Auth::user()->newAddress($request->all())) {
            return $this->respondsWithSuccess(trans('address.success_save'), route('addressBook.index'));
        }

        return $this->respondsWithError(trans('address.errors.update'));
    }
public function store(AddressBookRequest $request)
    {
        if (Auth::user()->newAddress($request->all())) {
            return $this->respondsWithSuccess(trans('address.success_save'), route('addressBook.index'));
        }

        return $this->respondsWithError(trans('address.errors.update'));
    }
public function store ( AddressBookRequest $ request ) { if ( Auth :: user ( ) -> newAddress ( $ request -> all ( ) ) ) { return $ this -> respondsWithSuccess ( trans ( 'address.success_save' ) , route ( 'addressBook.index' ) ) ; } return $ this -> respondsWithError ( trans ( 'address.errors.update' ) ) ; }
Store a new address for the signed user.

@return void
Store a new address for the signed user .