Change migration namespace format

This commit is contained in:
Toby Zerner 2015-10-02 17:49:43 +09:30
parent e251cf34c4
commit 2a17590412

View File

@ -246,7 +246,7 @@ class Migrator
{
$file = implode('_', array_slice(explode('_', $file), 4));
$class = 'Flarum\\Migrations\\' . ($extension ? Str::studly($extension) : 'Core') . '\\';
$class = ($extension ? str_replace('-', '\\', $extension) : 'Core') . '\\Migrations\\';
$class .= Str::studly($file);