diff --git a/backend/app/Http/Controllers/Api/ChildrenController.php b/backend/app/Http/Controllers/Api/ChildrenController.php index 92f1240b..f7e234a6 100644 --- a/backend/app/Http/Controllers/Api/ChildrenController.php +++ b/backend/app/Http/Controllers/Api/ChildrenController.php @@ -66,12 +66,7 @@ class ChildrenController extends Controller { $telact->push(); // SMSを送ります。 - $message = 'KIKI承知システムの招待URLが届きました。 - -▼招待URLはコチラ -'.url('/').urlencode('/c-account/register/'.$token).' - -KIKI承知システムを使って「聞いてない!」「言ってない!」などの問題を解決しよう。'; + $message = view('sms.children.register', ['token' => $token]); \Notification::route('nexmo', '81'.substr($r->tel, 1))->notify(new SmsNotification($message)); DB::commit(); @@ -200,10 +195,7 @@ KIKI承知システムを使って「聞いてない!」「言ってない! TelActivation::create($create); // SMSを送ります。 - $message = 'パスワード再発行用URLです。 -有効期限は8時間以内です。 - -'.url('/').urlencode('/c-account/forgot-password/reset/'.$token); + $message = view('sms.children.password', ['token' => $token]); \Notification::route('nexmo', '81'.substr($r->tel, 1))->notify(new SmsNotification($message)); } catch (\Throwable $e) { // 失敗 diff --git a/backend/app/Http/Controllers/Api/FathersController.php b/backend/app/Http/Controllers/Api/FathersController.php index 991d6cd2..8629d613 100644 --- a/backend/app/Http/Controllers/Api/FathersController.php +++ b/backend/app/Http/Controllers/Api/FathersController.php @@ -454,10 +454,7 @@ class FathersController extends Controller { try { foreach (json_decode($r->tel) as $tel) { // SMSを送ります。 - $message = '未承知のミーティングがあります。 -以下より確認してください。 -'.url('/').urlencode('/c-account/meeting/detail/'.$r->meeting_id); - + $message = view('sms.fathers.approval', ['meeting_id' => $r->meeting_id]); \Notification::route('nexmo', '81'.substr($tel, 1))->notify(new SmsNotification($message)); } } diff --git a/backend/resources/views/sms/children/password.blade.php b/backend/resources/views/sms/children/password.blade.php new file mode 100644 index 00000000..ec7194bf --- /dev/null +++ b/backend/resources/views/sms/children/password.blade.php @@ -0,0 +1,4 @@ +パスワード再発行用URLです。 +有効期限は8時間以内です。 + +{{ url('/').'/c-account/forgot-password/reset/'.$token }} \ No newline at end of file diff --git a/backend/resources/views/sms/children/register.blade.php b/backend/resources/views/sms/children/register.blade.php new file mode 100644 index 00000000..f6c56e9c --- /dev/null +++ b/backend/resources/views/sms/children/register.blade.php @@ -0,0 +1,6 @@ +KIKI承知システムの招待URLが届きました。 + +▼招待URLはコチラ +{{ url('/').'/c-account/register/'.$token }} + +KIKI承知システムを使って「聞いてない!」「言ってない!」などの問題を解決しよう。 \ No newline at end of file diff --git a/backend/resources/views/sms/fathers/approval.blade.php b/backend/resources/views/sms/fathers/approval.blade.php new file mode 100644 index 00000000..d26f4eca --- /dev/null +++ b/backend/resources/views/sms/fathers/approval.blade.php @@ -0,0 +1,3 @@ +未承知のミーティングがあります。 +以下より確認してください。 +{{ url('/').'/c-account/meeting/detail/'.$meeting_id }} \ No newline at end of file