If I use the below method, it works fine.
Route::get('create', function () {
return view('post.create');
});
However, if I use the resource, it gives me the below errors:
Route::resource('posts', 'PostController');
It gives the below error
NotFoundHttpException in RouteCollection.php line 161