@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user