aleksei0807 / react-images-uploader

React.js component for uploading images to the server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How i can i get images in laravel backend

ShintaroNippon opened this issue · comments

HI there how can i get the images in backend using laravel ?

<ImagesUploader
                      optimisticPreviews

                          url={ window.location.host.indexOf('localhost') != -1 ? "http://laravel.local.pt/api/v1/register/savemultipleimages" : "/api/v1/register/savemultipleimages"}


                      onLoadEnd={(err) => {
                          if (err) {
                              console.error(err);
                          }
                      }}
                      label={t('add_images')}
                      />
public function saveMultipleImages(Request $request){
      $data = $request->all();
      var_dump($data);
      return Response::json([
      ], 200);
    }

thanks in advance
carlos vieira