Answer the question
In order to leave comments, you need to log in
How to find out information about the current user in October CMS?
An authorized user clicks a button on a certain page, thereby sending an ajax request, which is processed in the plugin in the routes.php file. There, I have to get the user's data via the command Auth::getUser();
, but it returns NULL even though the current user is authorized.
Why is the command Auth::getUser(); can produce NULL and how can I still get information about the user in my case?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question