[英]Laravel. How to call specific array in object when using Session?
Your screenshot displays an array, therefore the value would be accessible like so: 屏幕截图显示了一个数组,因此可以像这样访问该值:
$session['event_name'];
But if you are using the Laravel session tools: https://laravel.com/docs/5.8/session#retrieving-data 但是,如果您使用的是Laravel会话工具: https ://laravel.com/docs/5.8/session#retrieving-data
You can do this: 你可以这样做:
$session->get('event_name');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.