build: initialize RetroHub with Laravel, Inertia, Vue, and Horizon
This commit is contained in:
@@ -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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user