title: can someone help me in laravel to fix when i add image on db i got this D:\youssfi\wamp\tmp\php5571.tmp but i want the original name of image
body: <p>this is my function store in controller :</p>
  
  <pre><code>public function store(VehiculeRequest $request)
  {
      $image = $request-&gt;image_VH;
  
      if($image-&gt;isValid()) {
          $chemin = config('images.path');
          $extension = $image-&gt;getClientOriginalExtension();
          do {
              $nom = str_random(10) . '.' . $extension;
          } while(file_exists($chemin . '/' . $nom));
  
          $image-&gt;move($chemin, $nom);
      }
  
      $inputs = array_merge($request-&gt;all($image));
      $this-&gt;VHRepository-&gt;store($inputs);
      return redirect(route('vehicules.index'));
  }
  </code></pre>
  
  <p>and this my class repository:</p>
  
  <pre><code>&lt;?php
  
      namespace App\Repositories;
  
      use App\Vehicule;
      use App\Http\Requests\VehiculeRequest;
  
      class VHRepository
      {
  
          protected $Vehicule;
  
          public function __construct(Vehicule $Vehicule)
          {
              $this-&gt;Vehicule = $Vehicule;
          }
  
          public function getPaginate($n)
          {
              return $this-&gt;Vehicule-&gt;with('user')
              -&gt;orderBy('vehicules.created_at', 'desc')
              -&gt;paginate($n);
          }
  
          public function store($inputs)
          {
              $this-&gt;Vehicule-&gt;create($inputs);
          }
  
          public function destroy($id_vehicules)
          {
              $this-&gt;Vehicule-&gt;findOrFail($id_vehicules)-&gt;delete();
          }
  
      }
  </code></pre>