mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
Cleans up the main card on the mod detail page to make the SPT version more in-sync with the rest of the site. Resolves #28
23 lines
577 B
PHP
23 lines
577 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\SptVersion;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
class SptVersionFactory extends Factory
|
|
{
|
|
protected $model = SptVersion::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'version' => $this->faker->numerify('SPT 1.#.#'),
|
|
'color_class' => $this->faker->randomElement(['red', 'green', 'emerald', 'lime', 'yellow', 'grey']),
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
];
|
|
}
|
|
}
|