First Commit
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require '/app/vendor/autoload.php';
|
||||
$app = require_once '/app/bootstrap/app.php';
|
||||
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
|
||||
$kernel->bootstrap();
|
||||
|
||||
$s = \App\Models\Subject::where('name', 'Test Subject Message Type')->firstOrFail();
|
||||
\App\Models\UserSubject::create([
|
||||
'user_id' => 1,
|
||||
'subject_id' => $s->id,
|
||||
'frequency' => 'daily',
|
||||
'preferred_times' => ['09:00'],
|
||||
'insight_language' => 'pt_BR',
|
||||
'delivery_channels' => ['dashboard'],
|
||||
'is_active' => true,
|
||||
]);
|
||||
echo 'Subscribed\n';
|
||||
Reference in New Issue
Block a user