lundi 27 juin 2016

Why does not work POST routing in Laravel

I use the standard authentication mechanism in Laravel.

Route path is:

Route::post('auth/register', 'Auth\AuthController@postRegister');

HTML form is:

<form method="POST" action="/auth/register">

When I submit form I get 404 error.

But path for GET methos works:

Route::get('auth/register', 'Auth\AuthController@getRegister');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire