#feature: add config page
This commit is contained in:
23
database/factories/IpUserMappingFactory.php
Normal file
23
database/factories/IpUserMappingFactory.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\IpUserMapping;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<IpUserMapping>
|
||||
*/
|
||||
class IpUserMappingFactory extends Factory
|
||||
{
|
||||
protected $model = IpUserMapping::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'ip_address' => $this->faker->unique()->ipv4(),
|
||||
'user_name' => $this->faker->userName(),
|
||||
'remark' => $this->faker->optional()->sentence(6),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user