fixed:修改命令行无法生成model field
This commit is contained in:
@@ -152,7 +152,7 @@ class Utils
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除前缀
|
||||
* 删除表前缀
|
||||
*
|
||||
* @time 2020年12月01日
|
||||
* @param string $table
|
||||
@@ -163,6 +163,19 @@ class Utils
|
||||
return str_replace(self::tablePrefix(), '', $table);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加表前缀
|
||||
*
|
||||
* @time 2020年12月26日
|
||||
* @param string $table
|
||||
* @return string
|
||||
*/
|
||||
public static function tableWithPrefix(string $table)
|
||||
{
|
||||
return Str::contains($table, self::tablePrefix()) ?
|
||||
$table : self::tablePrefix() . $table;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否是超级管理员
|
||||
*
|
||||
|
Reference in New Issue
Block a user