Snapshot of main at 9f39a6e1e (2026-11-02)

This commit is contained in:
Ronald Huynen committed 2026-11-02 10:41:47 +01:00
commit 6ccf1792d7
2580 files changed
+1040202

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Database\Seeders;
use App\Models\Account;
use App\Models\Organization;
use Illuminate\Database\Eloquent\Factories\Sequence;
use Illuminate\Database\Seeder;
class OrganizationSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$orgCount = max((int)$this->command->ask('How many fake organizations would you like?', 10), 0);
Organization::factory()->count($orgCount)
->has(Account::factory()->count(3)->state(new Sequence(
['name' => 'Organization Account'],
['name' => 'Project 1 Account'],
['name' => 'Project 2 Account']
)))
->create();
}
}