从laravel控制器内部获取PHP超全局变量 我可以从laravel获得Moodle会话。 我可以使用 $ _ SESSION ['USER'] code>在laravel中获取moodle会话 “nofollow noreferrer”>这个例子,但如果我运行 所以我不能使用Laravel重定向功能。
任何人都可以帮我这个吗?
有没有其他方法可以调用超全局 $ _ SESSION code>时遇到问题。 p>
php artisan route:list code>,它会返回一个错误,如下所示: p>
Laravel控制器中的$ _SESSION code>?
谢谢你 p>
div>
I have problem when get PHP superglobal variable $_SESSION
from inside laravel controller.
I can get Moodle session from laravel. I can get moodle session in laravel with $_SESSION['USER']
using this example, but if I run php artisan route:list
it returns an error, like this:
So I cannot use the Laravel redirect function.
Can anyone help me with this?
Is there any other way to call the superglobal $_SESSION
in the Laravel controller?
Thank you