uselaravel
7 months ago
656
3
Laravel

Laravel, sentinel get reminder code problem.

Posted 7 months ago by uselaravel

    //$reCode and $user previously successful variables.

    $sentinelUser = Sentinel::findById($user->id);

        if($reminder = Reminder::exists($sentinelUser)){
                
             if($reCode == $reminder->code){
                    
                return view('resetpw');
                    
            }else{
                    
                return redirect('/');
    
            }

Returns true when I look at $reminder with dd($reminder). And

$reminder->code error = Trying to get property 'code' of non-object.

Help me, thank you...

Please sign in or create an account to participate in this conversation.