UsersSeed.php 549 B

12345678910111213141516171819202122232425
  1. <?php
  2. use think\migration\Seeder;
  3. class UsersSeed extends Seeder
  4. {
  5. /**
  6. * Run Method.
  7. *
  8. * Write your database seeder using this method.
  9. *
  10. * More information on writing seeders is available here:
  11. * http://docs.phinx.org/en/latest/seeding.html
  12. */
  13. public function run()
  14. {
  15. return \catchAdmin\permissions\model\Users::create([
  16. 'username' => 'admin',
  17. 'password' => 'catchadmin',
  18. 'email' => 'catch@admin.com',
  19. 'creator_id' => 1,
  20. ]);
  21. }
  22. }