Q
Q
qtcute2016-07-09 22:32:40
MongoDB
qtcute, 2016-07-09 22:32:40

How to change $user?

There is a project on Laravel (ubuntu 14.04, mongodb), on ftp there is a php-file with a setting - @if($user->is_admin), which makes a given (in some file) user an admin.
Where can the file be located, where can this user be set?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2016-07-09
@Yadalay

Step by step:
1. Look at the file name.
2. Go to routes.php and look for which request uses this template, while visiting the controller specified in the route.
3. Find the method in that controller that passes $user to the template.

T
ThunderCat, 2016-07-09
@ThunderCat

it 's well written here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question