Page MenuHomePhorge

UserFactory.php
No OneTemporary

Authored By
Unknown
Size
730 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 [
'email' => $faker->unique()->safeEmail,
'password' => Str::random(64)
];
}
);

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 10:45 AM (3 d, 21 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0e/6a/b29456a4b507ffcb19ab9e52b558
Default Alt Text
UserFactory.php (730 B)

Event Timeline