0

I got this error while implementing the Hubtel SMS Api.

<?php

namespace App\Http\Controllers\Api;

use Illuminate\Notifications\Notification;
use NotificationChannels\Hubtel\HubtelChannel;
use NotificationChannels\Hubtel\HubtelMessage;

class SendSMS extends Notification
{
    public function via($notifiable)
    {
        return [HubtelChannel::class];
    }

    public function toSMS($notifiable='yes')
    {
//        echo "hi";
        return (new HubtelMessage)
            ->from("JabClari")
            ->to("+923105149080")
            ->content("Kim Kippo... Sup with you");
    }
}

I installed Hubtel SMS channel using this and following proper instructions.

https://github.com/Norris1z/hubtel-laravel-sms-channel

Please help me

stackuser
  • 168
  • 2
  • 6
  • 15
  • 1
    Did you run `composer dumpautoload`? – aynber Dec 17 '18 at 13:52
  • All the files are in the server. I am remotely connected to it, how to run command in server? I dont have cpanel – stackuser Dec 19 '18 at 04:33
  • You'll need to find a way to get ssh access. Talk to your hosting server. Or check out https://stackoverflow.com/questions/26109816/laravel-dump-autoload-without-shell-access – aynber Dec 19 '18 at 13:51

0 Answers0