title: ErrorException in LoginController.php line 31: Non-static method Illuminate\Auth\SessionGuard::attempt() should not be called statically
body: <p>When I write web service for Admin login, I faced this problem:</p>
  
  <blockquote>
    <p>ErrorException in LoginController.php line 31: Non-static method Illuminate\Auth\SessionGuard::attempt() should not be called statically, assuming $this from incompatible context</p>
  </blockquote>
  
  <p>My login controller code is below:</p>
  
  <pre><code>public function adminLogin()
  {
      $auth =  Auth::guard(AppParams::AUTH_ADMIN);
      if ($auth::attempt(array('am_email' =&gt; Input::get('am_email'), 'am_password' =&gt; Input::get('am_password')))) {
          return response()-&gt;json(array('login_status' =&gt; 'success', 'adminID' =&gt; $auth-&gt;user()-&gt;am_id));
      } else {
          return response()-&gt;json(array('login_status' =&gt; 'not found'));
      }
  
  }
  </code></pre>