<?php namespace App\Http\Controllers;  use Illuminate\Support\Facades\Request;   class UploadController extends Controller {      public function upload(Request $request)     {          if(Request::hasFile('file')){              echo 'Uploaded';             $file = Request::file('file');             $file->move('uploads', $file->getClientOriginalName());             echo '$file' . $file->getClientOriginalName() . '"/>';         }      } } 

Read more of this post