title: Laravel filters not working
body: <p>Firstly I am sure these filters were originally working and I have no just noticed they are not.</p>
  
  <p>My filters from filters.php</p>
  
  <pre><code>Route::filter('partnership', function()
  {
      if (!Auth::check())
      {
          return Redirect::to('login');
      }
      elseif(Auth::check())
      {
          $access = Auth::user()-&gt;access;
          if(!$access == 'partnership')
          {
              return Redirect::to('login');
          }
      }
  });
  
  Route::filter('company', function()
  {
      if (!Auth::check())
      {
          return Redirect::to('login');
      }
      elseif(Auth::check())
      {
          $access = Auth::user()-&gt;access;
          if(!$access == 'company')
          {
              return Redirect::to('login');
          }
      }
  });
  </code></pre>
  
  <p>These are used to see if the user has the correct access level</p>
  
  <p>My route groups look like this from routes.php</p>
  
  <p>EDIT: Missed this part of the first filter group</p>
  
  <pre><code>Route::group(array('before' =&gt; 'partnership'), function ()
  {
  //Dashboard access
      Route::get('partnership_dashboard', array('as' =&gt; 'partnership_dashboard', function()
      {
          $count = DB::table('devices')-&gt;count();
          if ($count &gt; 25)
          {
              $overLicense = $count - 25;
              $licenseWarning = 'The client is over their license quota by '.$overLicense;
              return View::make('partnership.partnership-dashboard')
                  -&gt;withErrors($licenseWarning);
          }
          else
          {
              return View::make('partnership.partnership-dashboard');
          }
      }));
  
      // Route for register form action
      Route::post('register', array('uses' =&gt; 'UsersController@partnership_create'));
  </code></pre>
  
  <p>My company group</p>
  
  <pre><code>Route::group(array('before' =&gt; 'company'), function ()
  {
      //Dashboard access
      Route::get('dashboard', array('as' =&gt; 'dashboard', function()
      {
          // Get user data for dashboard drop down menu
          $users = DB::table('users')
              -&gt;where('access', 'company')-&gt;get();
          $i = 0;
          foreach ($users as $user) {
              $full_name = $user-&gt;first_name." ".$user-&gt;last_name;
              $user_arr[$i] = array('name' =&gt; $full_name, 'user_id' =&gt; $user-&gt;id);
              $i++;
          }
          // Get device data for dashboard dropdown menu
          $devices = DB::table('devices')-&gt;get();
          $count = DB::table('devices')-&gt;count();
          if ($count &gt; 25)
          {
              $overLicense = $count - 25;
              $licenseWarning = 'You are over your license quota by '.$overLicense; 
              return View::make('dashboard')
                  -&gt;with('users', $user_arr)
                  -&gt;with('devices', $devices)
                  -&gt;withErrors($licenseWarning);
          }
          else {
          return View::make('company.dashboard')
              -&gt;with('users', $user_arr)
              -&gt;with('devices', $devices);
          }
      }));
  });
  </code></pre>
  
  <p>I have checked I am getting the correct data from the database. I'm just a bit stumped</p>
  
  <p>Thanks in advance</p>