Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

budy's avatar
Level 2

Route::resource Parameters

Hello,

first of all its's a pleasure to me to find this spring of inspiration. Ok go to the problem. I have a

Route::resource('projects', 'ProjectController') 

that works as expected. Now i want to inject a parameter to filter the index method like planned/active/closed projects or it is better to create a new route for every filter?

#budy

0 likes
4 replies
budy's avatar
Level 2

Sorry for my really stupid question, but how can i access this in my controller?

Please or to participate in this conversation.