Laratrust\MigrationCommand::getMigrationPath PHP Method

getMigrationPath() protected method

The date parameter is optional for ability to provide a custom value or a wildcard.
protected getMigrationPath ( string | null $date = null ) : string
$date string | null
return string
    protected function getMigrationPath($date = null)
    {
        $date = $date ?: date('Y_m_d_His');
        return database_path("migrations/{$date}_{$this->migrationSuffix}.php");
    }