title: Laravel Multiple file upload 5.6
body: <p>Problem is my storing file directory is not working at all. If i could save Folders Direction i can show all files of folder.</p>
  
  <p><strong>create.blade.php</strong></p>
  
  <pre><code>{!! Form::open(['method' =&gt; 'POST', 'route' =&gt; ['materials.store'], 'files' =&gt; true]) !!}
  &lt;div class="form-group"&gt;
      {!! Form::label('name', 'Файлаа энд хуулна уу') !!}
      {!! Form::file('attachments[]', ['roles' =&gt; 'form', 'multiple' =&gt; 'multiple']) !!}
      {!! Form::token() !!}
  &lt;/div&gt;
      {!! Form::submit('Submit', ['class' =&gt; 'btn btn-success'])  !!}
  &lt;a href="{{ url()-&gt;previous() }}" class="btn btn-default"&gt;Back&lt;/a&gt;
  {!! Form::close() !!}
  </code></pre>
  
  <p><strong>materialscontroller@create</strong></p>
  
  <pre><code>dd($request,$files);
  </code></pre>
  
  <p><strong>config/app.php</strong></p>
  
  <pre><code>'fileDestinationPath' =&gt; 'uploads',
  'allowedFileTypes' =&gt; 'jpg,jpeg,bmp,png,pdf',
  'maxFileSize' =&gt; 1000000*2,
  </code></pre>
  
  <p><strong>Result is</strong></p>
  
  <pre><code>"_token" =&gt; "9Oxhj6WrzJGAl3Dw8LV9cw6QvW7nT5PhittIiJL8"
  "title" =&gt; "China"
  "description" =&gt; "Deleniti nobis earum voluptatem facere quis eiusmod occaecat nostrum commodo soluta sit beatae nesciunt quia quasi"
  </code></pre>
  
  <p><strong>Its show.blade.php thats how i print</strong></p>
  
  <pre><code>&lt;h1&gt;&lt;b&gt;Хэлтэс : &lt;/b&gt; {{ $material-&gt;title }}&lt;/h1&gt;&lt;hr&gt; 
  &lt;p class="lead"&gt;&lt;b&gt;Агуулга : &lt;/b&gt;{{ $material-&gt;description }}&lt;/p&gt;&lt;hr&gt;
  @foreach($files as $file)
  &lt;a href="http://localhost/QuizApp/resources/app/{{ $file }}"&gt;Файл татах&lt;/br&gt;&lt;/a&gt;
  @endforeach
  </code></pre>
  
  <p><strong>MaterialsController</strong></p>
  
  <pre><code>foreach ($files as $file) {
  $fileName = $file-&gt;getClientOriginalName();
  $uploaded = Storage::put($destinationPath.$fileName.'.'.$file-&gt;getClientOriginalExtension(),file_get_contents($file-&gt;getRealPath()));
  }
      if($uploaded){
          Material::create([
              'description' =&gt; $request-&gt;input('description'),
              'title' =&gt; $request-&gt;input('title'),
              'filename' =&gt; $date,
          ]);
  </code></pre>