Files
api-extranetwork/database/factories/ModelFactory.php
ExtraNetwork e5c4b6aa13 first commit
2026-05-12 17:04:54 +03:00

22 lines
670 B
PHP

<?php
/*
|-------------------------------------------------------------------
| Models Factories
|-------------------------------------------------------------------
|
| Here you may define all of your model factories. Models factories
| give you a convenient way to create models for testing and seeding
| your database. Just tell the factory how a default model should
| look.
*/
use Illuminate\Support\Facades\Hash;
$factory->define(App\Models\Users::class, function (Faker\Generator $faker) {
return [
'name' => $faker->name,
'email' => $faker->unique()->email,
'password' => Hash::make('12345'),
];
});