mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
init
This commit is contained in:
21
database/factories/DatabaseUserFactory.php
Executable file
21
database/factories/DatabaseUserFactory.php
Executable file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\DatabaseUser;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class DatabaseUserFactory extends Factory
|
||||
{
|
||||
protected $model = DatabaseUser::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'username' => $this->faker->userName,
|
||||
'password' => 'password',
|
||||
'databases' => [],
|
||||
'host' => '%',
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user