methodnotallowedhttpexception laravel

Posted by w3diy - 1 year ago

methodnotallowedhttpexception laravel : Solved – Laravel Throwing MethodNotAllowedHttpException

New Laravel Routes:

Route::post('validate', '[email protected]');

Route::get('validate', function () {
    return View::make('members/login');
});

Then your controller method could just be

public function validateCredentials()
{
    $email = Input::post('email');
    $password = Input::post('password');
    return "Email: " . $email . " and Password: " . $password;
}