added pricing, orgs
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-04 20:34:19 -07:00
parent 999d5ad28d
commit 2ca3860557
52 changed files with 3467 additions and 47 deletions
+8 -1
View File
@@ -12,7 +12,7 @@ class BaseDatabaseSeeder extends Seeder
*/
public function run(): void
{
User::updateOrCreate(
$admin = User::updateOrCreate(
['email' => config('admin.email')],
[
'name' => config('admin.name'),
@@ -20,5 +20,12 @@ class BaseDatabaseSeeder extends Seeder
'is_admin' => true,
],
);
// Grandfather the admin so a fresh install is usable before any Stripe
// price is configured. The organization itself is created by the
// model's created hook.
$admin->currentOrganization()->first()?->forceFill([
'lifetime_access' => true,
])->save();
}
}