I am new to laravel and angularjs. I want to integrate angularjs with laravel. I want to make register form with fields like name,email,password, profile image. I want to submit that form using angularjs to laravel controller to store data in db. i am using below code to pass form data to controller.
$http({
method: 'POST',
url: url,
data: $scope.employees,
headers: {'Content-Type': undefined}
}).success(function (response) {
console.log(response);
}).error(function (response) {
console.log(response);
alert('This is embarassing. An error has occured. Please check the log for details');
});
can anybody guide me how can i get all the data from form including image file and other fields. I have also try to pass form data using FormData() but in that case i only get image file.