CreatesApplication.php 464 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Tests;
  3. use Illuminate\Support\Facades\Hash;
  4. use Illuminate\Contracts\Console\Kernel;
  5. trait CreatesApplication
  6. {
  7. /**
  8. * Creates the application.
  9. *
  10. * @return \Illuminate\Foundation\Application
  11. */
  12. public function createApplication()
  13. {
  14. $app = require __DIR__.'/../bootstrap/app.php';
  15. $app->make(Kernel::class)->bootstrap();
  16. Hash::driver('bcrypt')->setRounds(4);
  17. return $app;
  18. }
  19. }