I am working on an sms feature by the Nexmo package. i however ran into a difficulty that i cant solve. I have the following code in my rooutes php
Route::get('/sms/send/{to}', function(\Nexmo\Client $nexmo, $to){
$message = $nexmo->message()->send([
'to' => '0725959830',
'from' => '0791179389',
'text' => 'Sending SMS from Laravel. Woohoo!'
]);
Log::info('sent message: ' . $message['message-id']);
});
then with this i get an error "Target [Nexmo\Client\Credentials\CredentialsInterface] is not instantiable while building [Nexmo\Client]." Any ideas please
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire