Passing 2 Parameters to Laravel Routes - Resources
I'm trying to build my routes using resources so that I can pass two parameters into my resources. I'll give you a few examples of how the URLS would look: domain.com/dashboard domain.com/projects domain.com/project/100 domain.com/project/100/emails domain.com/project/100/email/3210 domain.com/project/100/files domain.com/project/100/file/56968 So you can see I always need to have reference to the project_id and also the email/file id etc. I realize I can do this manually by writing all routes by hand, but I'm trying to stick to the resource model. I figured something like this might work?