Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question