Added license management module

This commit is contained in:
vollstock committed 2026-05-25 22:45:23 +02:00
1 parent 93b7be7e2c
commit df24d48038
16 files changed
+861 -9

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use App\Models\License;
class LicenseFactory extends Factory
{
protected $model = License::class;
public function definition()
{
return [
'name' => $this->faker->name(),
'email' => $this->faker->safeEmail(),
'product' => "Tooloop Guide",
'version' => $this->faker->semver(),
'is_perpetual' => rand(0, 10) > 7,
'expiration_date' => $this->faker->dateTimeThisDecade(),
'signature' => $this->faker->sha256()
];
}
}