title: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in Laravel
body: <p>This question might already exist but it seems like I can't pull it off. I keep getting this error.
  I am building a REST using laravel</p>
  
  <p>model class Token</p>
  
  <pre><code>class Token extends Eloquent{
          protected $table = 'tokens';
          protected $fillable = ['api_token', 'client', 'user_id', 'expires_on'];
          public function user()
          {
              return $this-&gt;belongsTo('User','user_id');
          }
  }
  </code></pre>
  
  <p>model class User</p>
  
  <pre><code>class User extends Eloquent implements UserInterface, RemindableInterface{
  
      use UserTrait, RemindableTrait;
      protected $table = 'users';
  
      public function tokens(){
          return $this-&gt;hasMany('Token');
      }
  }
  </code></pre>
  
  <p>filters.php</p>
  
  <pre><code>Route::filter('auth.token', function(){
      $api_token = Input::get('token');
      $token = Token::where('api_token',$api_token)-&gt;first();
      if($token){
          $id=  $token-&gt;user_id;
          Auth::loginUsingId($id);
      } else {
          return Response::json(['message'=&gt;'Anauthorized Code']);
      }
  });
  </code></pre>
  
  <p>routes.php</p>
  
  <pre><code>Route::group(array('prefix'=&gt;'v1/'), function(){
          Route::get('/', ['before'=&gt;'auth.token'], function(){
              return "valid";
          });
  });
  </code></pre>
  
  <p>It seems like the error is on this line <code>Auth::loginUsingId($id);</code>.
  I've also the code below and I got this exception same exception</p>
  
  <pre><code>$user = User::find($token-&gt;user_id);
  Auth::login($user);
  </code></pre>
  
  <p>can anyone help me with this. Thanks</p>