Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120835609
UserFactory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
808 B
Referenced Files
None
Subscribers
None
UserFactory.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline