mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
文章可设置类型用于不同而类型
This commit is contained in:
@@ -46,12 +46,12 @@ class ColumnFormat
|
||||
->setDefault('');
|
||||
}
|
||||
|
||||
public static function integerTypeStatus($name)
|
||||
public static function integerTypeStatus($name,$default = 0)
|
||||
{
|
||||
return Column::make($name,'integer')
|
||||
->setLimit(10)
|
||||
->setSigned(false)
|
||||
->setDefault(0);
|
||||
->setDefault($default);
|
||||
}
|
||||
|
||||
public static function integer($name)
|
||||
|
||||
Reference in New Issue
Block a user