Same URL for different actions base on user role

Posted 1 year 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]');


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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.