30 lines
707 B
PHP
30 lines
707 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
|
||
|
|
class SiteFactory extends Factory
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Define the model's default state.
|
||
|
|
*
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
public function definition()
|
||
|
|
{
|
||
|
|
$company = $this->faker->company;
|
||
|
|
|
||
|
|
return [
|
||
|
|
'site_id' => $this->faker->unique()->bothify('???##'),
|
||
|
|
'site_nom' => $company,
|
||
|
|
'site_logo' => $this->faker->imageUrl(),
|
||
|
|
'site_contact' => $this->faker->email,
|
||
|
|
'site_rcs' => $this->faker->sentence,
|
||
|
|
'site_libelle' => $company,
|
||
|
|
'crm_token' => '',
|
||
|
|
'crm_password' => ''
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|