radfusion/database/factories/InstituteFactory.php

23 lines
501 B
PHP

<?php
namespace Database\Factories;
use App\Models\Organization;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
class InstituteFactory extends Factory
{
protected $model = Organization::class;
public function definition(): array
{
return [
'name' => $this->faker->name(),
'is_active' => $this->faker->boolean(),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
];
}
}