mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
feat(#17): add commands and jobs to poll, download and update firmware feat(#17): update firmware modal feat(#17): add tests
24 lines
594 B
PHP
24 lines
594 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Firmware;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
class FirmwareFactory extends Factory
|
|
{
|
|
protected $model = Firmware::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'version_tag' => $this->faker->word(),
|
|
'url' => $this->faker->url(),
|
|
'latest' => $this->faker->boolean(),
|
|
'storage_location' => $this->faker->word(),
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
];
|
|
}
|
|
}
|