mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-01-16 07:17:54 +03:00
a9c12e9fa0
- Bug fixed: [Undefined index: factory](https://github.com/webNeat/lumen-generators/issues/14) - Feature added: [Check if file already exists before generating it](https://github.com/webNeat/lumen-generators/issues/11) - Feature added: [Support for additional columns like nullableTimestamps() and softDeletes() in migrations](https://github.com/webNeat/lumen-generators/issues/12) - Feature added: [Specifying namespace for `wn:resource` and `wn:resources`](https://github.com/webNeat/lumen-generators/issues/18)
22 lines
622 B
PHP
22 lines
622 B
PHP
<?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\User::class, function ($faker) {
|
|
return [
|
|
'name' => $faker->name,
|
|
'email' => $faker->email,
|
|
'password' => str_random(10),
|
|
'remember_token' => str_random(10),
|
|
];
|
|
});
|