1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Is there a way to protect my global routes in laravel?

Discussão em 'Outras Linguagens' iniciado por Faeza Salman, Outubro 10, 2024 às 06:03.

  1. Faeza Salman

    Faeza Salman Guest

    I have two different user roles ( admin, sales-admin) I have created a middleware for each of them to see different views, and it works perfectly. on the other hand, I have some public routes everyone can access them

    how it's working now:when I login as sales-admin I can see my views + global routes as a logged sales user

    what I want is: when I login as sales-admin be able to see my views (www.mywebsite.com.salesadmin) which is working ✔️+ if sales-admin hits a public URL like(www.mywebsite.com) make them logout then be able to see the public routes

    Continue reading...

Compartilhe esta Página