title: Input class not found in laravel 5
body: <p>I want to save file uploaded through form into a json file for this I need to get post data which is easily get through Request or Input class methods.</p>
  
  <p>The problem is whenever I use Request or Input I can't get methods such as getClientOriginalName to get name of file and other parameters of file.</p>
  
  <p>My FileController code is as below:</p>
  
  <pre><code>&lt;?php namespace App\Http\Controllers;
  
  use App\Http\Requests;
  
  use Illuminate\Http\Request;            // this handles both for Input and Request as in laravel 5.1 documentation
  use Illuminate\Support\Facades\Input;   // though added some classes to get work
  use Illuminate\Support\Facades\File;    // though added some classes to get work
  use Illuminate\Filesystem\Filesystem;   // though added some classes to get work
  
  class FileController extends Controller
  {
  
  public function index()
  {
      $files = $this-&gt;getAllData();
      return view('document.index', compact('files'));
  }
  
  
  public function create()
  {
      return view('document.create');
  }
  
  public function store(Request $request)
  {
  
      $name = $request-&gt;input('title');
  
      echo $name;
  
      $file = $request-&gt;file('afile');
  
      if($request-&gt;hasFile('afile')) {
  
          $file = $request-&gt;file('afile');
  
          print_r($file); // return array of uploaded as expected
  
          $filename = $file-&gt;getClientOriginalName(); // not working
  
          // or 
  
          $filename = Input::file('afile')-&gt;getClientOriginalName(); // not working
  
          echo $filename;
      }
  
      // print_r($file);
  
      // $data= array('title'=&gt;$name, 'afile'=&gt;$file);
  
      // $this-&gt;create_entry($data);
  
      // return redirect('document');
  }
  }
  </code></pre>
  
  <p>FYI my file upload is sucessful and has got file array as</p>
  
  <pre><code>Array ( [0] =&gt; Symfony\Component\HttpFoundation\File\UploadedFile Object ( [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; new_file_1.txt [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; text/plain [size:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; 0 [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] =&gt; 0 [pathName:SplFileInfo:private] =&gt; E:\xampp\tmp\php5680.tmp [fileName:SplFileInfo:private] =&gt; php5680.tmp ) )
  </code></pre>
  
  <p>The only problem is I can't get methods of <a href="http://api.symfony.com/2.7/Symfony/Component/HttpFoundation/File/UploadedFile.html" rel="nofollow">Symphon2 API</a> though i used </p>
  
  <pre><code>use Input;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>use Illuminate\Support\Facades\Input;
  </code></pre>
  
  <p>Every methods of <strong>Input</strong> are not working either to check its valid or not.</p>
  
  <p>Every tutorial I refer or documentation from laravel 5 uses same as I have used in my code. 
  So any Kind of suggestion or solution is really appreciated.</p>
  
  <p>the functions as used in <a href="http://laravel.com/docs/5.1/requests#basic-request-information" rel="nofollow">this</a> documentation are working but no other methods except than that.</p>