Files
UNIT3D-Community-Edition/database/factories/NotificationFactory.php
2020-12-15 19:06:09 -05:00

35 lines
805 B
PHP

<?php
/* @var \Illuminate\Database\Eloquent\Factory $factory */
namespace Database\Factories;
use App\Models\Notification;
use Illuminate\Database\Eloquent\Factories\Factory;
class NotificationFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Notification::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'type' => $this->faker->word,
'notifiable_id' => $this->faker->randomNumber(),
'notifiable_type' => $this->faker->word,
'data' => $this->faker->text,
'read_at' => $this->faker->dateTime(),
];
}
}