22 lines
488 B
PHP
22 lines
488 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class PanierFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'panier_ref' => strtoupper(md5(uniqid(time(), true))),
|
|
'panier_campId' => $this->faker->randomDigit(),
|
|
'panier_pending' => $this->faker->numberBetween(0, 1)
|
|
];
|
|
}
|
|
}
|