diff --git a/src/EventServiceProvider.php b/src/EventServiceProvider.php index e83ac32..faf7918 100644 --- a/src/EventServiceProvider.php +++ b/src/EventServiceProvider.php @@ -3,7 +3,6 @@ namespace TookanTech\Chapaar; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; - use TookanTech\Chapaar\Events\SmsSent; use TookanTech\Chapaar\Events\StoreSmsMessage; diff --git a/src/Events/SmsSent.php b/src/Events/SmsSent.php index d139d2d..44938e0 100644 --- a/src/Events/SmsSent.php +++ b/src/Events/SmsSent.php @@ -20,4 +20,4 @@ public function __construct($provider, $data, $status) $this->data = $data; $this->status = $status; } -} \ No newline at end of file +} diff --git a/src/Listeners/StoreSmsMessage.php b/src/Listeners/StoreSmsMessage.php index 2b2aa52..668dd26 100644 --- a/src/Listeners/StoreSmsMessage.php +++ b/src/Listeners/StoreSmsMessage.php @@ -2,10 +2,8 @@ namespace TookanTech\Chapaar\Events; -use TookanTech\Chapaar\Events\SmsSent; -use TookanTech\Chapaar\Models\SmsMessage; use Illuminate\Contracts\Queue\ShouldQueue; - +use TookanTech\Chapaar\Models\SmsMessage; class StoreSmsMessage implements ShouldQueue { @@ -17,4 +15,4 @@ public function handle(SmsSent $event) $smsMessage->status = $event->status; $smsMessage->save(); } -} \ No newline at end of file +} diff --git a/src/Models/SmsMessage.php b/src/Models/SmsMessage.php index 4863b88..a83f663 100644 --- a/src/Models/SmsMessage.php +++ b/src/Models/SmsMessage.php @@ -5,9 +5,8 @@ use Illuminate\Database\Eloquent\Casts\AsCollection; use Illuminate\Database\Eloquent\Model; -class SmsMessage extends Model +class SmsMessage extends Model { - protected $fillable = [ 'provider', 'data',