@@ -131,12 +131,12 @@ To use this package, you need the following requirements:
131
131
*/
132
132
public function up(): void
133
133
{
134
- $id = DB::table(' notification_contexts' )->insertGetId (
134
+ DB::table(' notification_contexts' )->insert (
135
135
array(
136
136
' name' => ' user-verified' ,
137
137
' email_template_id' => ' d-ad34ghAwe3mQRvb29' ,
138
138
' description' => ' Notification to inform a user that they have been verified on the platform' ,
139
- ' channels' => [' EMAIL' ]
139
+ ' channels' => json_encode( [' EMAIL' ])
140
140
)
141
141
);
142
142
}
@@ -166,12 +166,12 @@ To use this package, you need the following requirements:
166
166
*/
167
167
public function up(): void
168
168
{
169
- $id = DB::table(' notification_contexts' )->insertGetId (
169
+ DB::table(' notification_contexts' )->insert (
170
170
array(
171
171
' name' => ' user-verified' ,
172
172
' email_template_filename' => ' user-verified.html' ,
173
173
' description' => ' Notification to inform a user that they have been verified on the platform' ,
174
- ' channels' => [' EMAIL' ]
174
+ ' channels' => json_encode( [' EMAIL' ])
175
175
)
176
176
);
177
177
}
@@ -201,13 +201,13 @@ To use this package, you need the following requirements:
201
201
*/
202
202
public function up(): void
203
203
{
204
- $id = DB::table(' notification_contexts' )->insertGetId (
204
+ DB::table(' notification_contexts' )->insert (
205
205
array(
206
206
' name' => ' user-verified' ,
207
207
' description' => ' Notification to inform a user that they have been verified on the platform' ,
208
208
' in_app_template_filename' => ' user-verified.json' ,
209
209
' type' => ' user' ,
210
- ' channels' => [' DATABASE' ]
210
+ ' channels' => json_encode( [' DATABASE' ])
211
211
)
212
212
);
213
213
}
@@ -244,14 +244,14 @@ To use this package, you need the following requirements:
244
244
*/
245
245
public function up(): void
246
246
{
247
- $id = DB::table(' notification_contexts' )->insertGetId (
247
+ DB::table(' notification_contexts' )->insert (
248
248
array(
249
249
' name' => ' user-verified' ,
250
250
' email_template_id' => ' d-ad34ghAwe3mQRvb29' ,
251
251
' description' => ' Notification to inform a user that they have been verified on the platform' ,
252
252
' in_app_template_filename' => ' user-verified.json' ,
253
253
' type' => ' user' ,
254
- ' channels' => [' EMAIL' , ' DATABASE' ]
254
+ ' channels' => json_encode( [' EMAIL' , ' DATABASE' ])
255
255
)
256
256
);
257
257
}
0 commit comments