Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path incorrect: vendor\craftsys\msg91-php\src./ instead of vendor\craftsys\msg91-php\src/ (dot extra) #17

Closed
anburocky3 opened this issue Oct 14, 2024 · 2 comments · Fixed by #18

Comments

@anburocky3
Copy link

require(S:\laragon6\www\project\vendor\craftsys\msg91-php\src./../config/msg91.php): Failed to open stream: Permission denied

This exception happens when trying to send SMS.

    private function sendOtp($mobileNo, $otp): bool
    {
        $mobileNo = '91'.$mobileNo; // Assuming Indian numbers, add country code

        try {
            $response = MSG91::otp($otp)
                ->to($mobileNo)
                ->template(config('services.msg91.senderId')) // Replace with your actual template ID
                ->send();

            return $response->getData()['type'] === 'success';
        } catch (Exception $e) {
            Log::error('MSG91 OTP sending failed: '.$e->getMessage());
            dd($e);

            return false;
        }
    }
@sudkumar
Copy link
Contributor

Tacking here craftsys/msg91-php#13

@sudkumar
Copy link
Contributor

🎉 This issue has been resolved in version 0.15.1 🎉

The release is available on GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants