<commit_before><?php

namespace Orchestra\Testbench\Concerns;

use Orchestra\Testbench\Database\MigrateProcessor;

trait WithLoadMigrationsFrom
{
    /**
     * Define hooks to migrate the database before and after each test.
     *
     * @param  string|array  $realpah
     *
     * @return void
     */
    protected function loadMigrationsFrom($realpath): void
    {
        $options = is_array($realpath) ? $realpath : ['--path' => $realpath];

        $migrator = new MigrateProcessor($this->app->make('migrator'), $options);
        $migrator->up();

        $this->beforeApplicationDestroyed(function () use ($migrator) {
            $migrator->rollback();
        });
    }
}<commit_msg>Let's just call them $paths.<commit_after><?php

namespace Orchestra\Testbench\Concerns;

use Orchestra\Testbench\Database\MigrateProcessor;

trait WithLoadMigrationsFrom
{
    /**
     * Define hooks to migrate the database before and after each test.
     *
     * @param  string|array  $paths
     *
     * @return void
     */
    protected function loadMigrationsFrom($paths): void
    {
        $options = is_array($paths) ? $paths : ['--path' => $paths];

        $migrator = new MigrateProcessor($this->app->make('migrator'), $options);
        $migrator->up();

        $this->beforeApplicationDestroyed(function () use ($migrator) {
            $migrator->rollback();
        });
    }
}
{'fraction_non_alphanumeric': 0.13711414213926776, 'fraction_numerical': 0.0, 'mean_word_length': 2.82967032967033, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '918158', 'n_tokens_mistral': 418, 'n_tokens_neox': 419, 'n_words': 86}