DatabaseSeeder.php 764 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. // Copyright 2019 Hackware SpA <https://hackware.cl>.
  3. // This file is part of "Hackware's Digital Wallet" and licensed under the
  4. // terms of the GNU Affero General Public License version 3, or (at your
  5. // option) a later version. You should have received a copy of this license
  6. // along with the software. If not, see <https://www.gnu.org/licenses/>.
  7. namespace Hawese\Seeds;
  8. use Illuminate\Database\Seeder;
  9. class DatabaseSeeder extends Seeder
  10. {
  11. /**
  12. * Run the database seeds.
  13. *
  14. * @return void
  15. */
  16. public function run()
  17. {
  18. $seeds = [UsersTableSeeder::class];
  19. if (class_exists(\Hawese\Wallet\Currency::class)) {
  20. $seeds[] = CurrenciesTableSeeder::class;
  21. }
  22. $this->call($seeds);
  23. }
  24. }