我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

AUTH :: ID(); 返回'null'或auth :: check(); 返回'false'

I have tried different methods discussed in here but not successful to my problem. Assumptions: 1. Failure to group routes under the same middleware group. 2. Get all the sessions required from web middleware and replace them into global middleware But I don't know how? help, please. Here are my files

route file

kernel file

controller file

You have to call user helper function first :

Auth::user()->id;

近期文章

  • 如何在我的数组中重复计算值?
  • php / html使用URL的文本作为变量信息? [重复]
  • 在一个dockerfile中结合PHP-fpm和nginx
  • 用PHP检测特定单词之间的单词
  • FPDF - 在单个创建中生成多个pdf
  • the_content之后的wordpress自定义字段输出
  • Valums jquery uploader工作但返回“失败”
  • Jqgrid我无法将更改更新到数据库中
  • 根据mongodb(查询)触发事件发送电子邮件
  • 使用regexp从Unix“ls -la”命令获取文件名?
  • Redis Pub / Sub使用Python后端和Socket.io
  • 运行一个php文件包含来自cron job的javascript
  • 增加MySQL值而不立即刷新
  • 无法在真实浏览器上重现phpbrowser错误
  • Doctrine 2自定义ObjectMultiCheckbox值
  • PHPMailer说无法连接到SMTP主机
  • 无法将JSON响应处理为array()变量
  • Laravel 5.1在事务块中重定向
  • 如何自动选中和取消选中复选框
  • 在laravel模式中为价格创建列

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华