for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests;
use Faker\Factory;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
protected $faker;
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
$this->faker = Factory::create('pt_BR');
return $app;
}