Skip to content

Instantly share code, notes, and snippets.

@saltun
Created December 3, 2015 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saltun/1e4d1b2c674462c54e1b to your computer and use it in GitHub Desktop.
Save saltun/1e4d1b2c674462c54e1b to your computer and use it in GitHub Desktop.
Laravel Manuel Auth Login
<?php
class LoginController extends BaseController {
//
public function getLogin($id){
$user=Auth::loginUsingId($id);
if (!$user){
throw new Exception('Giriş Hatası');
}else{
return Redirect::to('/');
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment