Added license management module

This commit is contained in:
2026-05-25 22:45:23 +02:00
parent 93b7be7e2c
commit df24d48038
16 changed files with 861 additions and 9 deletions
+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()
];
}
}