ldc-portsalaries/database/factories/FlashFactory.php

32 lines
581 B
PHP
Raw Normal View History

2021-05-08 06:50:19 +02:00
<?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)
];
}
}