src/DatabaseMigrations.php
public function migrate()
    {
        $fs = new Filesystem;
        $finder = new ClassFinder;
        $path = env('MIGRATIONS_PATH', 'database/migrations');

        if ($fs->exists($path)) {
            foreach ($fs->files($path) as $file) {
                $fs->requireOnce($file);
                $class = $finder->findClass($file);

                (new $class)->up();
            }
        }
    }
public function migrate()
    {
        $fs = new Filesystem;
        $finder = new ClassFinder;
        $path = env('MIGRATIONS_PATH', 'database/migrations');

        if ($fs->exists($path)) {
            foreach ($fs->files($path) as $file) {
                $fs->requireOnce($file);
                $class = $finder->findClass($file);

                (new $class)->up();
            }
        }
    }
public function migrate ( ) { $ fs = new Filesystem ; $ finder = new ClassFinder ; $ path = env ( 'MIGRATIONS_PATH' , 'database/migrations' ) ; if ( $ fs -> exists ( $ path ) ) { foreach ( $ fs -> files ( $ path ) as $ file ) { $ fs -> requireOnce ( $ file ) ; $ class = $ finder -> findClass ( $ file ) ; ( new $ class ) -> up ( ) ; } } }
Run package database migrations.

@return void
Run package database migrations .