Level 54
@mehrdad70 dropzone is a good solution to handling multiple image upload
see https://appdividend.com/2018/05/31/laravel-dropzone-image-upload-tutorial-with-example/
for a tutorial.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I tried very hard to find a solution to upload the multiple image but I did not succeed How do I do this? I have three tables
Media
product
media_product => image_id product_id
public function products()
{
return $this->belongsToMany(Product::class);
}
public function images()
{
return $this->belongsToMany(Media::class);
}
<div class="control-group form-group mb-0">
<label class="form-label">image </label>
<input type="file" name="images[]" class="form-control required" placeholder="product images" multiple>
Please or to participate in this conversation.