I am new in Laravel and I am using Laravel 5.5.
When I am submitting without {{ csrf_field() }}
not getting the error Token mismatch exception in Verify csrf token
The error is
The page has expired due to inactivity. Please refresh and try again
My HTML form is
<form method="POST" action="/post">
<div class="form-group">
<label for="title">Title</label>
<input type="text" class="form-control" name="title">
</div>
<div class="form-group">
<label for="textblog">Body</label>
<input type="textarea" class="form-control" name="body">
</div>
<button type="submit" class="btn btn-primary">Publish</button>
</form>
My Route web file
Route::post('/post','PostsController@store');
Here is my Controller class function
public function store() {
dd(request()->all());
}