//first check your route is there in route:list, if it it here
//then Some times it occurs because of url mismatch
//url in laravel is case senstive so make sure your whole url is correct.
Route::group(['middleware' =>['auth', 'verified']], function (){
Route::get('communities/{community}/posts/creategif', [AppHttpControllersCommunityPostController::class, 'creategif']);
Route::resource('communities', AppHttpControllersCommunityController::class);
Route::resource('communities.posts', AppHttpControllersCommunityPostController::class);
Route::resource('posts.comments', AppHttpControllersPostCommentController::class);
Route::get('posts/{post_id}/vote/{vote}', [AppHttpControllersCommunityPostController::class, 'vote'])->name('post.vote');
});