28 lines
589 B
PHP
28 lines
589 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\School>
|
|
*/
|
|
class SchoolFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => fake()->city(),
|
|
'address' => fake()->address(),
|
|
'city' => fake()->city(),
|
|
'state' => 'OK',
|
|
'zip' => rand(73001, 74999),
|
|
];
|
|
}
|
|
}
|