DatabaseSeeder.php 677 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. use Illuminate\Database\Seeder;
  11. class DatabaseSeeder extends Seeder
  12. {
  13. /**
  14. * Run the database seeds.
  15. */
  16. public function run()
  17. {
  18. // $this->call(PermissionsSeeder::class);
  19. // $this->call(AdminsSeeder::class);
  20. \App\Repositories\Models\Admin::query()->create([
  21. 'name' => '超级管理员',
  22. 'username' => 'superadmin',
  23. 'password' => bcrypt('123456')
  24. ]);
  25. }
  26. }