DatabaseSeeder.php 334 B

123456789101112131415161718192021
  1. <?php
  2. use Illuminate\Database\Seeder;
  3. use Illuminate\Database\Eloquent\Model;
  4. class DatabaseSeeder extends Seeder
  5. {
  6. /**
  7. * Run the database seeds.
  8. *
  9. * @return void
  10. */
  11. public function run()
  12. {
  13. Model::unguard();
  14. // $this->call(UserTableSeeder::class);
  15. Model::reguard();
  16. }
  17. }