Answer the question
In order to leave comments, you need to log in
How to properly check?
Hello.
I have two tables:
user:
id = 1
name = alex
id = 2
name: ilya
role:
role_id = 1
title: admin
role_id = 2
title:
user blade.php and user in user.blade.php
Answer the question
In order to leave comments, you need to log in
I think it would be right to make separate controllers with the corresponding routes and use middleware to check for the role
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question