I
I
Ilya Loopashko2021-03-29 06:44:07
Laravel
Ilya Loopashko, 2021-03-29 06:44:07

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

2 answer(s)
V
Vladimir Kudrya, 2021-03-29
@Mugenzo

I think it would be right to make separate controllers with the corresponding routes and use middleware to check for the role

J
jazzus, 2021-03-29
@jazzus

How to separate logic in laravel between users?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question