2026-05-08 09:37:16 +03:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
|
|
|
|
{
|
|
|
|
|
|
use WithoutModelEvents;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* Seed the application's database.
|
2026-05-11 08:38:38 +03:00
|
|
|
|
*
|
2026-05-14 08:28:44 +03:00
|
|
|
|
* PricingTierSeeder runs in all environments (prod нуждается в 7-tier
|
|
|
|
|
|
* config bootstrap'е). DemoSeeder — только local+testing: создаёт demo
|
|
|
|
|
|
* tenant + admin@demo.local + 3 проекта + ~14 demo сделок для UI smoke.
|
2026-05-08 09:37:16 +03:00
|
|
|
|
*/
|
|
|
|
|
|
public function run(): void
|
|
|
|
|
|
{
|
2026-05-11 08:38:38 +03:00
|
|
|
|
$this->call(PricingTierSeeder::class);
|
2026-05-14 08:28:44 +03:00
|
|
|
|
|
|
|
|
|
|
if (app()->environment('local', 'testing')) {
|
|
|
|
|
|
$this->call(DemoSeeder::class);
|
|
|
|
|
|
}
|
2026-05-08 09:37:16 +03:00
|
|
|
|
}
|
|
|
|
|
|
}
|