Route keep asking for parameter even if not set to receive any
I'm new to laravel and I'm having trouble with one of my web routes... I grouped some routes with the auth middleware Route::middleware(['auth:web'])->group(function ($router) { Route::get('/news', [NewsController::class, 'news'])->name('news'); Route::get('/profile/{user_id}', [ProfileController::class, 'profile'])->name('profile'); Route::get('/marketplace', [MarketplaceController::class, 'marketplace'])->name('marketplace'); }); Before this issue, I have set a user_id parameter for the news route and then removed it the next day, now the news route keeps returning error saying it needs user
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.