Support the ongoing development of Laravel.io →
Requests Forms Validation
Last updated 8 months ago.
0

may i see your js ?

0

astroanu said:

may i see your js ?

Of course, The frontend is built using AngularJS and these are the functions I use to send requests to server:

        function save(data, url) {
            return $http({
                method: 'POST',
                url: url,
                headers: {'Content-Type': 'application/json'},
                data: angular.toJson(data)
            });
        }
        function update(data, url) {
            return $http({
                method: 'PUT',
                url: url + data.id,
                headers: {'Content-Type': 'application/json'},
                data: angular.toJson(data)
            });
        }
0

No answers?

0

Sign in to participate in this thread!

Cloudways

Your banner here too?

rastemoh rastemoh Joined 22 Nov 2016

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.

© 2023 Laravel.io - All rights reserved.