Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

227
Visualizações
How can I store new resize images from stored images in Laravel updating function

I have a Real Estate Directory website in Laravel, where I have stored lot of images around 2000+ records stored.

Now, I'm trying to add new resize images for my mobile device. I want to perform this task on product controller UPDATING FUNCTION. when user click on product update form button without selecting any new images.

From the Previous stored images will resize & store on new location. Previous images contains its dimensions and location. Just add new resize images on clicking updating the product form. Please Help. I'm stuck from 2 days.

$gallery_images_name = PropertyGallery::where('property_id', $id)->pluck('image_name');

    $galcount=0;
    
        foreach($gallery_images_name as $key =>  $gallery_image_name)
        {
            $name = 'property_' . $galcount . time() . '.' . $gallery_image_name;
            $img = Image::make($gallery_image_name->getRealPath());
            $img->resize(124, 182, function ($constraint)
            {
                $constraint->aspectRatio();
            })->save(public_path() . '/upload/m_gallery/' . 'mobile_property_'.$name);
        }
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda