1 year ago

How to get a method working in vue, the same way as it does in the backend

Posted 1 year ago by nizam0786

Hi Guys,

I have this following user method

   public function store(StoreContactRequest $request)
        $user = $this->userRepository->store($request);
    return redirect('/users/' . $user->id)->with('flash', 'User successfully created.');

I am trying to get it work with axios in vue.js any ideas how I could get it to work just as it works in the backend.

Thanks in advance.

Please sign in or create an account to participate in this conversation.