freescout/freescout-dist/database/factories/MailboxFactory.php

17 lines
423 B
PHP
Raw Permalink Normal View History

2023-12-22 19:40:32 +00:00
<?php
use Faker\Generator as Faker;
$factory->define(App\Mailbox::class, function (Faker $faker) {
$name = $faker->company;
$email = $faker->unique()->companyEmail;
$domain = explode('@', $email)[1];
return [
'name' => $name,
'email' => $email,
'aliases' => 'support@'.$domain.',help@'.$domain.', contact@'.$domain,
//'signature' => '--<br/>'.$name,
];
});