AuthKey.php 300 B

12345678910111213
  1. <?php
  2. use Faker\Generator as Faker;
  3. $factory->define(\App\Models\User\AuthKey::class, function (Faker $faker) {
  4. $user = factory(\App\Models\User\UserModel::class)->create();
  5. return [
  6. 'uid' => $user->uid,
  7. 'auth_key' => $user->phone,
  8. 'auth_type' => 'phone'
  9. ];
  10. });