skip to Main Content

Laravel 10 route create beautiful URL

I have route: Route::resource('posts', PostController::class); Within URL (1): domain.com/posts will show all posts. Within URL (2): domain.com/posts?status=trashed will show all soft deleted posts. How I want to create a beautiful URL which replace the URL (2)? Such as domain.com/posts/status/trashed, or…

VIEW QUESTION
Back To Top
Search