title: laravel 5 : Class 'input' not found
body: <p>In my <code>routes.php</code> file I have :</p>
  
  <pre><code>Route::get('/', function () {
  
      return view('login');
  });
  
  Route::get('/index', function(){
      return view('index');
  });
  
  Route::get('/register', function(){
      return view('register');
  });
  Route::post('/register',function(){
  
      $user = new \App\User;
      $user-&gt;username = input::get('username');
      $user-&gt;email  = input::get('email');
      $user-&gt;password = Hash::make(input::get('username'));
      $user-&gt;designation = input::get('designation');
      $user-&gt;save();
  
  });
  </code></pre>
  
  <p>I have a form for users registration. I am also taking the form inputs value in the <code>routes.php</code>.</p>
  
  <p>But the error comes up when I register a user .
  Error:</p>
  
  <pre><code>FatalErrorException in routes.php line 61:
  Class 'input' not found
  </code></pre>