vendredi 1 février 2019

laravel 5.7 form setting route

I'm using laracel for first time and I have to seta form ,I have this form on the view

<html>
    <body>
        <h1>Hello</h1>

        <form method="POST" action="">
            <input type="text"/>
            <input type="submit" value="Enviar">
        </form>

        <script src=""></script>
        <script src=""></script>
    </body>
</html>

and this routes

Route::get('/', 'DateFormController@show');
Route::post('/date_process', 'DateFormController@process');

but Iget this error message

Route [date_process] not defined.

How I have to set the form action field to send to date_process function?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire