首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Sentinel Reminder::exists()错误

Sentinel Reminder::exists()错误
EN

Stack Overflow用户
提问于 2016-07-05 17:12:16
回答 0查看 645关注 0票数 0

您好,我正在使用Cartalyst/Sentinel登录系统,一切工作正常,但下面的提醒::exists($user)函数给出了这个错误Argument 1 passed to Cartalyst\Sentinel\Reminders\IlluminateReminderRepository::exists() must implement interface cartalyst\Sentinel\Users\UserInterface

代码与示例页面上给出的代码相同。https://cartalyst.com/manual/sentinel/2.0#reminder-exists-user

代码语言:javascript
复制
$user = Sentinel::findById($credentials);

//dd($user); // this dump user return collection object of user

 $reminder = Reminder::exists( $user );
EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38199472

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档