B
B
bpGusar2017-08-06 01:23:44
Laravel
bpGusar, 2017-08-06 01:23:44

How to restrict access to certain sections of the site? And how to make user groups?

For example, so that those who are not authorized and not in the admin group would not have access to the admin panel. And how to set up user groups?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexFlip, 2017-08-06
@AlexFlip

Admin check:
Authorization check:
If the user is not an admin or is not authorized, then he is redirected to the main page.
Substitute your data accordingly and that's it.

T
ThunderCat, 2017-08-07
@ThunderCat

And how to set up user groups?

RBAC / ACL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question