0
0
00O2021-06-08 13:35:38
Laravel
00O, 2021-06-08 13:35:38

How to get a record?

Good afternoon. The application has users, roles, and rights. I need to check if the user has the right, through his roles.

A user with roles is associated as many-to-many, in turn, roles with rights are also associated as many-to-many. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2021-06-08
@00O

How to be?

Read the documentation of course)
https://laravel.com/docs/8.x/eloquent-relationships

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question