「SMS送信、KIKIと表示されず、電話番号が表示されている。fromをKIKIに変更でお願いいたします。」

このコミットが含まれているのは:
守矢諏訪子 2021-12-18 16:44:11 +09:00
コミット a274c0891e
5個のファイルの変更6行の追加4行の削除

ファイルの表示

@ -168,7 +168,7 @@ class ChildrenController extends Controller {
// SMSを送ります。
$message = view('sms.children.register.main', ['tel' => $r->tel, 'password' => $r->password]);
\Notification::route('nexmo', '81'.substr($r->tel, 1))->notify(new SmsNotification($message));
\Notification::route('nexmo', '81'.substr($get->tel, 1))->notify(new SmsNotification($message));
DB::commit();
} catch (\Throwable $e) {

ファイルの表示

@ -43,6 +43,7 @@ class SmsNotification extends Notification
{
return (new NexmoMessage())
->content($this->message)
->from('KIKI')
->unicode();
}

ファイルの表示

@ -12,7 +12,8 @@
"intervention/image": "^2.7",
"laravel/framework": "^8.12",
"laravel/nexmo-notification-channel": "^2.5",
"laravel/tinker": "^2.5"
"laravel/tinker": "^2.5",
"nexmo/laravel": "^2.4"
},
"require-dev": {
"facade/ignition": "^2.5",

2
backend/composer.lock generated
ファイルの表示

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "9c7f3f3ae06176c13a2e71065d0491b6",
"content-hash": "04ab94d1f04d3f8c89e2f15bc4e9af74",
"packages": [
{
"name": "asm89/stack-cors",

ファイルの表示

@ -33,7 +33,7 @@ return [
'nexmo' => [
'key' => env('NEXMO_KEY'),
'secret' => env('NEXMO_SECRET'),
'sms_from' => '819012345678',
'sms_from' => 'KIKI',
],
];