Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel 9 Route problem return 404 NOT FOUND

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');
});
 
PREVIOUS NEXT
Tagged: #Laravel #Route #problem #return #NOT #FOUND
ADD COMMENT
Topic
Name
5+1 =