src/Migrator.php
protected function getMigrationClassNameByFileName($file)
    {
        $fileExploded = explode('_', $file);

        $datePart = implode('_', array_slice($fileExploded, 0, 5));
        $namePart = implode('_', array_slice($fileExploded, 5));

        return Helpers::studly($namePart.'_'.$datePart);
    }
protected function getMigrationClassNameByFileName($file)
    {
        $fileExploded = explode('_', $file);

        $datePart = implode('_', array_slice($fileExploded, 0, 5));
        $namePart = implode('_', array_slice($fileExploded, 5));

        return Helpers::studly($namePart.'_'.$datePart);
    }
protected function getMigrationClassNameByFileName ( $ file ) { $ fileExploded = explode ( '_' , $ file ) ; $ datePart = implode ( '_' , array_slice ( $ fileExploded , 0 , 5 ) ) ; $ namePart = implode ( '_' , array_slice ( $ fileExploded , 5 ) ) ; return Helpers :: studly ( $ namePart . '_' . $ datePart ) ; }
Get a migration class name by a migration file name.

@param string $file

@return string
Get a migration class name by a migration file name .