title: laravel5.1 Manually Authenticating Users
body: <p>In my app I use the default authentification to login my users to their dashboard.
  Now I would like to create a backend for supporters and one for admins.
  I use this code at the moment to login as admin:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Admin;
  
  use Illuminate\Http\Request;
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  use App;
  use Artisan;
  use Validator;
  use Auth;
  
  class AdminLoginController extends Controller
  {
  
      public function index()
      {
          return view('admin.login');
  
      }
  
      public function authenticate(Request $request)
      {
           if (Auth::attempt(['username' =&gt; $request-&gt;username, 'password' =&gt; $request-&gt;password, 'id' =&gt; 1])) 
          {
              // Authentication passed...
              dd("correct");
          }
          else
          {
              dd("login data incorrect!");
  
          }
      }
  
  }
  </code></pre>
  
  <p>How can I use now the well known redirects after login.
  In my AuthController I use for the users I use this code:</p>
  
  <pre><code>/**
   * Where to redirect users after login / registration.
   *
   * @var string
   */
  protected $redirectTo = '/dashboard';
  protected $redirectAfterLogout = 'auth/login';
  protected $redirectPath = '/dashboard';
  </code></pre>
  
  <p>1.) How can I use this in my code above? I would like to redirect admins logged into the app like users to specified urls using this laravel feature.</p>
  
  <p>2.) What's the best way, to check more "ids" in the if statement? Because there will be more than one admin.</p>