Dev0ps
6 months ago

how to make 2 routes with same name

Posted 6 months ago by Dev0ps

if the user is authenticated: Route::get('/PID/{PostId}', '[email protected]');

if the user is not auth Route::get('PID/{PostId?}', '[email protected]');

I put first in guest middleware and second in auth middleware. but not working

Please help.

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