Files
einundzwanzig-portal/database/factories/BitcoinEventFactory.php
2022-12-12 19:17:09 +01:00

36 lines
801 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\BitcoinEvent;
use App\Models\Venue;
class BitcoinEventFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = BitcoinEvent::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition(): array
{
return [
'venue_id' => Venue::factory(),
'from' => $this->faker->dateTime(),
'to' => $this->faker->dateTime(),
'title' => $this->faker->sentence(4),
'description' => $this->faker->text,
'link' => $this->faker->word,
];
}
}