Created
December 3, 2015 22:29
-
-
Save saltun/1e4d1b2c674462c54e1b to your computer and use it in GitHub Desktop.
Laravel Manuel Auth Login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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