sk_im
107
5
Laravel

Same URL for different actions base on user role

Posted 2 years ago by sk_im

Hey there,

i was wondering if it is possible to have the same URL for different actions based on the user. Let's say i want to have 2 routes like this:

Route::get('/calendar', 'Admin/[email protected]');

and

Route::get('/calendar', 'Participant/[email protected]');

I want to avoid 2 routes like '/admin/calendar' and '/participant/calendar'

Is there a way to do this?

Thanks in advance

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

Reply to

Use Markdown with GitHub-flavored code blocks.