ldc-portsalaries/database/factories/FlashFactory.php
2021-06-07 18:28:25 +02:00

31 lines
581 B
PHP

<?php
namespace Database\Factories;
use App\Models\Flash;
use Illuminate\Database\Eloquent\Factories\Factory;
class FlashFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Flash::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'title' => $this->faker->sentence(1),
'content' => $this->faker->realText(),
'status' => rand(0, 1)
];
}
}