build: initialize RetroHub with Laravel, Inertia, Vue, and Horizon

This commit is contained in:
2026-08-10 13:45:18 +02:00
commit 717db65139
218 changed files with 28356 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace Database\Factories;
use App\Features\Games\Models\Game;
use App\Features\Settings\Models\SaveFile;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class SaveFileFactory extends Factory
{
protected $model = SaveFile::class;
public function definition(): array
{
$filename = fake()->word().'.srm';
return [
'user_id' => User::factory(),
'game_id' => Game::factory(),
'file_path' => "saves/{$filename}",
'file_name' => $filename,
'file_size' => fake()->numberBetween(1000, 100000),
'last_synced_at' => fake()->optional()->dateTime(),
];
}
}