I am making a post request in my form
<form action="/confirmation" method="POST">
{{ csrf_field() }}
<input type="text" name="confirmationcode" required>
<button type="submit">Submit</button>
</form>
My route
Route::post('/confirmation', 'bookController@confirmation');
My bookController
public function confirmation()
{
$code = request('confirmationcode');
dd($code);
}
I am getting 404 in my console
POST http://127.0.0.8000/confirmation 404 (Not Found)
And Sorry, the page you are looking for could not be found. in my browser
I just cannot seem to figure out what is wrong, I wonder if another pair of eyes can help me.