define(App\Models\User::class, function (Faker $faker) { static $password; $now = \Carbon\Carbon::now()->toDateTimeString(); return [ 'name' => $faker->name, 'email' => $faker->unique()->safeEmail, 'password' => $password ?: $password = bcrypt('secret'), 'remember_token' => str_random(10), 'created_at' => $now, 'updated_at' => $now ]; });