protected function autologinValid(AutologinInterface $autologin) {
        if (config('autologin.remove_expired')) {
            $lifetime = config('autologin.lifetime');

            if ($autologin->created_at <= Carbon::now()->subMinutes($lifetime)) {
                $autologin->delete();

                return false;
            }
        }

        return true;
    }
protected function autologinValid(AutologinInterface $autologin) {
        if (config('autologin.remove_expired')) {
            $lifetime = config('autologin.lifetime');

            if ($autologin->created_at <= Carbon::now()->subMinutes($lifetime)) {
                $autologin->delete();

                return false;
            }
        }

        return true;
    }
protected function autologinValid ( AutologinInterface $ autologin ) { if ( config ( 'autologin.remove_expired' ) ) { $ lifetime = config ( 'autologin.lifetime' ) ; if ( $ autologin -> created_at <= Carbon :: now ( ) -> subMinutes ( $ lifetime ) ) { $ autologin -> delete ( ) ; return false ; } } return true ; }
Determine whether the autologin token provided is valid and remove it
if not.

@param  \Watson\Autologin\Interfaces\AutologinInterface  $autologin
@return bool
Determine whether the autologin token provided is valid and remove it if not .