mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 01:58:07 +00:00
Fix FLEXIAPI-416 Respect the Spaces columns contraints in LiblinphoneTesterAccoutSeeder
This commit is contained in:
parent
789c27f654
commit
6fcde1b467
1 changed files with 3 additions and 1 deletions
|
|
@ -92,6 +92,8 @@ class LiblinphoneTesterAccoutSeeder extends Seeder
|
|||
foreach ($domains as $domain) {
|
||||
$space = Space::where('domain', $domain)->firstOrNew();
|
||||
$space->domain = $domain;
|
||||
$space->host = $domain;
|
||||
$space->name = $domain;
|
||||
$space->save();
|
||||
}
|
||||
|
||||
|
|
@ -101,7 +103,7 @@ class LiblinphoneTesterAccoutSeeder extends Seeder
|
|||
}
|
||||
|
||||
private function generateAccountArray(
|
||||
int $id, string $username, string $domain, string $phone = null,
|
||||
int $id, string $username, string $domain, ?string $phone = null,
|
||||
bool $activated = true
|
||||
): array {
|
||||
return [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue