Answers for "upload image base64 laravel by storage put"

PHP
0

php laravel intervention base64 to image save

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  );
 }
Posted by: Guest on November-11-2021
0

Laravel How to access imagen uploaded in storage

php artisan storage:link

ejem:

http://somedomain.com/storage/image.jpg
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language