for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace LaravelFreelancerNL\Aranguent\Testing;
use Illuminate\Foundation\Testing\DatabaseMigrations as IlluminateDatabaseMigrations;
use LaravelFreelancerNL\Aranguent\Testing\Concerns\CanConfigureMigrationCommands;
trait DatabaseMigrations
{
use IlluminateDatabaseMigrations;
use CanConfigureMigrationCommands;
/**
* The parameters that should be used when running "migrate:fresh".
*
* Duplicate code because CanConfigureMigrationCommands has a conflict otherwise.
* @return array
*/
protected function migrateFreshUsing()
$seeder = $this->seeder();
$results = array_merge(
[
'--drop-analyzers' => $this->shouldDropAnalyzers(),
'--drop-graphs' => $this->shouldDropGraphs(),
'--drop-views' => $this->shouldDropViews(),
'--drop-types' => $this->shouldDropTypes(),
'--drop-all' => $this->shouldDropAll(),
],
$seeder ? ['--seeder' => $seeder] : ['--seed' => $this->shouldSeed()],
$this->setMigrationPaths(),
);
return $results;
}