ldc-crm/database/factories/CustomerLoginFactory.php
Jérémy Munsch 9ce70dbe85 - fixes
- customer update prop test
2021-08-05 16:18:09 +02:00

40 lines
852 B
PHP

<?php
namespace Database\Factories;
use App\Models\CustomerLogin;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
class CustomerLoginFactory extends Factory
{
protected static $first = false;
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = CustomerLogin::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
$bool = $this->faker->boolean;
// Force first to be active
if (!self::$first) {
self::$first = true;
$bool = false;
}
return [
'password' => 'testPassword',
'last_connection' => $this->faker->date(),
'status' => $bool
];
}
}