Migration.php 523B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Illuminate\Database\Migrations;
  3. abstract class Migration
  4. {
  5. /**
  6. * The name of the database connection to use.
  7. *
  8. * @var string
  9. */
  10. protected $connection;
  11. /**
  12. * Enables, if supported, wrapping the migration within a transaction.
  13. *
  14. * @var bool
  15. */
  16. public $withinTransaction = true;
  17. /**
  18. * Get the migration connection name.
  19. *
  20. * @return string
  21. */
  22. public function getConnection()
  23. {
  24. return $this->connection;
  25. }
  26. }