[Laravel] login auth

// app/routes.php
Route::get("login", "SessionsController@create");
Route::get("logout", "SessionsController@destroy");
Route::resource("sessions", "SessionsController");

Route::get("admin", function()
{
  return "Admin Page";
})-gt;before("auth");
// app/routes.php
Route::get("login", "SessionsController@create");
Route::get("logout", "SessionsController@destroy");
Route::resource("sessions", "SessionsController");

Route::get("admin", function()
{
  return "Admin Page";
})-gt;before("auth");

// app/controllers/SessionsController.php
<?php
class SessionsController extends BaseController{
  
  public function create()
  {
    if( Auth::check() ) return Redirect::to("/admin");
    
    return View::make("sessions.create");
  }
  
  public function store()
  {
    if( Auth::attempt(Input::only('email', 'password')) )
    {
      return "Welcome " . Auth::user()->username;
    }
    
    return Redirect::back()->withInput();
  }
  
  public function destroy()
  {
    Auth::logout();
    
    return Redirect::route("sessions.create");
  }
}

// app/views/sessions/create.blade.php
{{ Form::open(["route" => "sessions.store"]) }}
  <div>
    {{ Form::label("email", "Email:") }}
    {{ Form::email("email") }}
  </div>

  <div>
    {{ Form::label("password", "Password:") }}
    {{ Form::password("password") }}
  </div>
  
  <div>
    {{ Form::submit("Login") }}
  </div>
{{ Form::close() }}