laravel-filemanager multiple image code example

Example 1: laravel filemanger choose multiple images

<script>
    $('[class*="lfm"]').each(function() {
        $(this).filemanager('image', {prefix: route_prefix});
    });
</script>

Example 2: laravel filemanger choose multiple images

<div class="row">
  <div class="col-md-6">
    <div class="input-group">
      <span class="input-group-btn">
        <a data-input="thumbnail" data-preview="holder" class="lfm btn btn-primary">
          <i class="fa fa-picture-o"></i> CHOOSE
        </a>
      </span>
      <input id="thumbnail" class="form-control" type="text" name="image" readonly>
    </div>
    <img id="holder" style="margin-top:15px;max-height:100px;">
  </div>
</div>

<div class="row">
  <div class="col-md-6">
    <div class="input-group">
      <span class="input-group-btn">
        <a data-input="thumbnail2" data-preview="holder2" class="lfm btn btn-primary">
          <i class="fa fa-picture-o"></i> CHOOSE
        </a>
      </span>
      <input id="thumbnail2" class="form-control" type="text" name="image" readonly>
    </div>
    <img id="holder2" style="margin-top:15px;max-height:100px;">
  </div>
</div>

Tags:

Php Example