🆙 Fix missing transolations 🆙
This commit is contained in:
1 parent
883cbbbfeb
commit
487203436b
20 files changed
+57
-14
No files matched your search
@@ -49,7 +49,7 @@ if (! function_exists('findMigration')) {
|
||||
foreach (glob(database_path('migrations/*.php')) as $filename) {
|
||||
// Check if the migration file has the Schema::create() line with the given table name
|
||||
$content = file_get_contents($filename);
|
||||
if (preg_match("/Schema::create\\(['\"]".preg_quote($tableName, '/')."['\"]/", $content)) {
|
||||
if (preg_match("/Schema::create\\(['\"]" . preg_quote($tableName, '/') . "['\"]/", $content)) {
|
||||
return basename($filename, '.php');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user