forge/database/factories/LicenseFactory.php

23 lines
468 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;
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(),
];
}
}