Another_X
7 months ago
27
12
Laravel

Is there a way i could provide paramatere for all controllers used inside route group?

Posted 7 months ago by Another_X

I am creating a multi-tenant app and I have created tenant scoping. Now, I would like my URL to have a tenant prefix but this creates a problem for me in the controllers, because, two parameters are passed and I would prefer using only one, that one would be controller related model like the example($post POST). Is there a way to achieve that?

Please sign in or create an account to participate in this conversation.