Files
librenms-librenms/database/factories/ComponentFactory.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
476 B
PHP
Raw Normal View History

<?php
namespace Database\Factories;
use App\Models\Component;
use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<Component> */
class ComponentFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'device_id' => $this->faker->randomDigit(),
'type' => $this->faker->regexify('[A-Za-z0-9]{4,20}'),
];
}
}