bitcoin events added

This commit is contained in:
Benjamin Takats
2022-12-12 18:32:50 +01:00
parent 2d3c63457a
commit 06fe25d195
15 changed files with 357 additions and 15 deletions

View File

@@ -0,0 +1,35 @@
<?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,
];
}
}