Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppHttpControllers;
- use IlluminateSupportFacadesInput;
- use AppLogin;
- use AppHttpControllersController;
- use IlluminateSupportFacadesRedirect;
- use IlluminateSupportFacadesAuth;
- use IlluminateSupportFacadesSchema;
- class LoginController extends Controller {
- public function login(){
- $uname = Input::get('username');
- $pwd = Input::get('password');
- if (Auth::attempt(array('user_name' => $uname, 'password' => $pwd))){
- return "success";
- }
- else {
- return "Wrong Credentials";
- }
- }
- }
Add Comment
Please, Sign In to add comment