title: Laravel 4 subdirectory controller doesn't load Input class
body: <p>I'm new to Laravel and having trouble with subdirectories.
  I want to make an admin folder inside the controllers folder and so far it's working. but when I try to use Laravel's Input class it says that it couldn't find it.</p>
  
  <p>My routes:</p>
  
  <pre><code>Route::group(array('prefix'=&gt; 'admin', 'before' =&gt; 'auth.admin'), function() {
  
     Route::resource('/users','Admin\\UsersController');
     Route::resource('/products','Admin\\ProductsController');
     Route::resource('/categories','Admin\\CategoriesController');
     Route::resource('/orders','Admin\\OrdersController');
     Route::resource('/reviews','Admin\\ReviewsController');
  
  });      
  </code></pre>
  
  <p>The Products Controller:</p>
  
  <pre><code> &lt;?php namespace admin;
  
      class ProductsController extends \BaseController {
  
      protected $layout = 'master';
          /**
       * Instantiate a new ProductsController instance.
       */
      public function __construct()
      {
          $this-&gt;beforeFilter('auth.admin');
      }
  
      /**
       * Display a listing of the resource.
       * GET /products
       *
       * @return Response
       */
      public function index()
      {
          $input = Input::all(); //here is where it finds the error
  </code></pre>
  
  <p>And the composer.json autoload:</p>
  
  <pre><code>"autoload": {
  
          "classmap": [
              "app/commands",
              "app/controllers/",
              "app/models",
              "app/database/migrations",
              "app/database/seeds",
              "app/tests/TestCase.php",
              "app/controllers/Admin"
          ]
      },
  </code></pre>
  
  <p>Thank you!</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I have also tried to use Input (and \Input) and it returned the "Class 'Facade' not found" error, and when I tried:</p>
  
  <pre><code>use \Illuminate\Support\Facades\Facade;
  use Input;
  </code></pre>
  
  <p>It still did not work.</p>
  
  <p><strong>Edit 2:</strong></p>
  
  <p>Now using:</p>
  
  <pre><code>use Illuminate\Support\Facades\Input;
  </code></pre>
  
  <p>and returning the same error.</p>
  
  <p><strong>Edit 3:</strong>
  Did the modifications suggested by @ChristopherRathgeb and now it's not finding the products model.</p>
  
  <p><strong>Answer:</strong></p>
  
  <p>After doing the modifications suggested by @ChristopherRathgeb and adding \ to the View and Input classes(example <code>$input = \Input:all();</code>) it worked! And now to redirect to these controller with the action method I just used action(admin\ProductsController) and it worked!</p>
  
  <p>My thanks to all who helped!</p>