Support the ongoing development of Laravel.io →
Input Forms
Last updated 2 years ago.
0

The best way is to use a front end framework such as AngularJS. So that you can play with your inputs and and merge them to json then send the json to your RESTful API that will parse the JSON.

/***   Angular Code ***/
 $http.post('/someUrl', {msg:'some products'}).
  success(function(data, status, headers, config) {
    // this callback will be called asynchronously
    // when the response is available
  }).
  error(function(data, status, headers, config) {


   // called asynchronously if an error occurs
   // or server returns response with an error status.
  });

see documentation here https://docs.angularjs.org/api/ng/service/$http

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nicknmejia nicknmejia Joined 17 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.