29 lines
700 B
PHP
29 lines
700 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use App\Models\KriteriaModel;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model>
|
|
*/
|
|
class kriteriaFactory extends Factory
|
|
{
|
|
protected $model = KriteriaModel::class;
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'id' => $this->faker->random_integer(),
|
|
'nama_kriteria' => $this->faker->name(),
|
|
'kode_kriteria' => $this->faker->random_int(),
|
|
'bobot' => $this->faker->randomFloat(2, 0, 100),
|
|
];
|
|
}
|
|
}
|