First Commit

This commit is contained in:
marco
2026-09-01 07:49:48 -03:00
commit 28b1044038
399 changed files with 41659 additions and 0 deletions
Executable
+17
View File
@@ -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';