Controller {     public function Authenticate() {         if(Auth::attempt([  'email'=>Input::get('email'),                              'password'=>Input::get('password')]))         {             return response()->json("OK");         }          else          {             return response()->json("ERROR");         }      }      public function Register() {             return response()->json("Not Implemented");     } }