forge/database/factories/LicenseFactory.php

26 lines
505 B
PHP
Raw Normal View History

2024-05-15 00:31:24 -04:00
<?php
namespace Database\Factories;
use App\Models\License;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
2024-09-11 23:08:58 -04:00
/**
* @extends Factory<License>
*/
2024-05-15 00:31:24 -04:00
class LicenseFactory extends Factory
{
protected $model = License::class;
public function definition(): array
{
return [
'name' => fake()->name(),
'link' => fake()->url(),
2024-05-15 00:31:24 -04:00
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
];
}
}