Created
April 28, 2019 07:54
-
-
Save earth774/d565dde65c5735845888517b45f89168 to your computer and use it in GitHub Desktop.
Fake Data Factory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Model Factories | |
|-------------------------------------------------------------------------- | |
| | |
| Here you may define all of your model factories. Model 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. | |
| | |
*/ | |
$factory->define(App\Users::class, function (Faker\Generator $faker) { | |
return [ | |
'fullname' => $faker->name, | |
'lastname' => $faker->name, | |
'age' => '24', | |
'tel' => $faker->phoneNumber, | |
]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment