Skip to content

Commit 78d0cb7

Browse files
Merge pull request #14 from chijioke-ibekwe/add-vonage-sms-provider
docs: update README.md
2 parents ec0274f + 50b3a8c commit 78d0cb7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ To use this package, you need the following requirements:
131131
*/
132132
public function up(): void
133133
{
134-
$id = DB::table('notification_contexts')->insertGetId(
134+
DB::table('notification_contexts')->insert(
135135
array(
136136
'name' => 'user-verified',
137137
'email_template_id' => 'd-ad34ghAwe3mQRvb29',
138138
'description' => 'Notification to inform a user that they have been verified on the platform',
139-
'channels' => ['EMAIL']
139+
'channels' => json_encode(['EMAIL'])
140140
)
141141
);
142142
}
@@ -166,12 +166,12 @@ To use this package, you need the following requirements:
166166
*/
167167
public function up(): void
168168
{
169-
$id = DB::table('notification_contexts')->insertGetId(
169+
DB::table('notification_contexts')->insert(
170170
array(
171171
'name' => 'user-verified',
172172
'email_template_filename' => 'user-verified.html',
173173
'description' => 'Notification to inform a user that they have been verified on the platform',
174-
'channels' => ['EMAIL']
174+
'channels' => json_encode(['EMAIL'])
175175
)
176176
);
177177
}
@@ -201,13 +201,13 @@ To use this package, you need the following requirements:
201201
*/
202202
public function up(): void
203203
{
204-
$id = DB::table('notification_contexts')->insertGetId(
204+
DB::table('notification_contexts')->insert(
205205
array(
206206
'name' => 'user-verified',
207207
'description' => 'Notification to inform a user that they have been verified on the platform',
208208
'in_app_template_filename' => 'user-verified.json',
209209
'type' => 'user',
210-
'channels' => ['DATABASE']
210+
'channels' => json_encode(['DATABASE'])
211211
)
212212
);
213213
}
@@ -244,14 +244,14 @@ To use this package, you need the following requirements:
244244
*/
245245
public function up(): void
246246
{
247-
$id = DB::table('notification_contexts')->insertGetId(
247+
DB::table('notification_contexts')->insert(
248248
array(
249249
'name' => 'user-verified',
250250
'email_template_id' => 'd-ad34ghAwe3mQRvb29',
251251
'description' => 'Notification to inform a user that they have been verified on the platform',
252252
'in_app_template_filename' => 'user-verified.json',
253253
'type' => 'user',
254-
'channels' => ['EMAIL', 'DATABASE']
254+
'channels' => json_encode(['EMAIL', 'DATABASE'])
255255
)
256256
);
257257
}

0 commit comments

Comments
 (0)