Hello, I have recently been learning laravel but reading the documentation I can not understand the authentication part and this happens in the part of restricting routes to users. For example, if I have an administrator user who can enter these routes:
- mipagina.com/registrar-product
- mipagina.com/edit-product
- mipagina.com/gestion-product
Another client user who can see the products and buy
-
mipagina.com/listado-de-productos
-
mipagina.com/buy-products
How would you make the client user unable to access the administrator's routes? I just need some theories or points to start investigating since I feel confused with this part. I managed to make a login but any logged in user can access all the routes