Actually, Input::all() returns an array inputs, so you have the following:
$data = Input::all();
Now your $data is an array, not an object, so you are trying to access the image as an object:
$data->base64_image
So it does not work. You must try:
$image = $data['base64_image'];
Since it ( base64_image ) is accessible from $_POST , then Input::file('base64_image') will not work, because Input::file('base64_image') checks the $_FILES , and it does not exist in your case.
source share