first commit
This commit is contained in:
25
database/factories/DataCentreFactory.php
Normal file
25
database/factories/DataCentreFactory.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\DataCentre;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class DataCentreFactory extends Factory
|
||||
{
|
||||
protected $model = DataCentre::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'nama_pusat_data' => 'Pusat Data '.fake()->city(),
|
||||
'tajuk_permohonan' => 'Permohonan Lesen '.fake()->words(2, true),
|
||||
'lokasi_pusat_data' => fake()->city(),
|
||||
'alamat' => fake()->address(),
|
||||
'keluasan_tapak' => fake()->randomFloat(2, 1, 20),
|
||||
'it_load' => fake()->randomFloat(2, 5, 100),
|
||||
'status' => 'aktif',
|
||||
'current_consultant_id' => null,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user