i'm new laravel learner. i have create a form in laravel 5.4 and add two field one is textfield and another is submit button. i have create a name route for form submission. but when i submit the form it's show token mismatch exception. i can't find out error from my code. Here, is my form code.
<form method="post" action="">
<input class="form-control" type="text" name="fname">
<input type="submit" name="submit" value="Create">
</form>
here is my route,
Route::post('formsubmit','HomeController@formSubmit')->name('f.submit');
and here my controller,
public function formSubmit()
{
echo "Form Submitted";
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire