Home > Q&A > body text
//If it is an admin user, update the role in the user information user_info in the current session for page call
if (Session::get('user_info.name') == 'admin') {
Session::set('user_info.role', $data['role']);
}
路过2017-11-10 16:50:46
Just print $data to see if there is any
$data['id'] exists and can be printed, but $data['role'] cannot. . . what's up
Have you solved it? Mine is the same.
You didn't take it out