Konversi gambar ke base64 di Laravel
$image = base64_encode(file_get_contents($request->file('image')->path()));
Precious Peacock
$image = base64_encode(file_get_contents($request->file('image')->path()));
public function postTest() {
$data = Input::all();
$png_url = "product-".time().".png";
$path = public_path().'img/designs/' . $png_url;
Image::make(file_get_contents($data->base64_image))->save($path);
$response = array(
'status' => 'success',
);
return Response::json( $response );
}