Skip to content

Instantly share code, notes, and snippets.

@gpassarelli
Created May 6, 2013 19:51
Show Gist options
  • Save gpassarelli/5527659 to your computer and use it in GitHub Desktop.
Save gpassarelli/5527659 to your computer and use it in GitHub Desktop.
LARAVEL RESTful login app
$credentials = array('username' => $_SERVER['PHP_AUTH_PW'], 'password' => $_SERVER['PHP_AUTH_PW']);
if (Auth::attempt($credentials))
{
return Redirect::to('user/profile');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment