forge/database/factories/LicenseFactory.php

26 lines
505 B
PHP

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