build: initialize RetroHub with Laravel, Inertia, Vue, and Horizon
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Features\Consoles\Models\Console;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class ConsoleFactory extends Factory
|
||||
{
|
||||
protected $model = Console::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
$name = fake()->unique()->words(2, true);
|
||||
|
||||
return [
|
||||
'name' => $name,
|
||||
'slug' => fake()->unique()->slug(),
|
||||
'rom_extensions' => [['nes']],
|
||||
'igdb_platform_id' => fake()->optional()->randomNumber(3),
|
||||
'tgdb_platform_id' => fake()->optional()->randomNumber(4),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user