您好,我正在使用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
$user = Sentinel::findById($credentials);
//dd($user); // this dump user return collection object of user
$reminder = Reminder::exists( $user );https://stackoverflow.com/questions/38199472
复制相似问题