Page MenuHomePhorge

UserFactory.php
No OneTemporary

Authored By
Unknown
Size
808 B
Referenced Files
None
Subscribers
None

UserFactory.php

<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\User;
use Illuminate\Support\Str;
use Faker\Generator as Faker;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/
$factory->define(
User::class,
function (Faker $faker) {
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'email_verified_at' => now(),
'password' => Str::random(64)
];
}
);

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 1:19 PM (1 d, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18754884
Default Alt Text
UserFactory.php (808 B)

Event Timeline