我使用的是Laravel4和rydurham/Sentinel (https://cartalyst.com/manual/sentinel)。我可以登录用户,注册用户,并完美地显示我定制的Sentinel视图。我所做的配置更改注册得很好。但是,当我包含以下内容时:
{{ Sentinel::check() }}或
{{ Sentinel::guest() }}我得到了错误Class 'Sentinel' not found。我注意到$aliases中没有前哨外观,运行composer dump-autoload不能解决这个问题。有什么想法吗?
发布于 2014-09-16 14:32:02
问题是我使用的是rydurham/Sentinel,而不是Cartalyst的Sentinel包。这是两件不同的事情。不过,rydurham/Sentinel包含了Sentry的外观,因此您可以使用:
{{ Sentry::check() }}
{{ Sentry::guest() }}https://stackoverflow.com/questions/25860401
复制相似问题