create cmms machine service with tests
This commit is contained in:
30
database/factories/CMMSMachineFactory.php
Normal file
30
database/factories/CMMSMachineFactory.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\CMMSMachine>
|
||||
*/
|
||||
class CMMSMachineFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'car_name' => $this->faker->name,
|
||||
'car_group' => $this->faker->name,
|
||||
'car_id' => $this->faker->numberBetween(1, 10),
|
||||
'car_status' => $this->faker->lexify,
|
||||
'machine_code' => $this->faker->numerify,
|
||||
'unit_name' => $this->faker->name,
|
||||
'unit_group' => $this->faker->name,
|
||||
'plak_number' => $this->faker->numerify,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user