fix: 分类/友链资源字段全部中文化(语言包 lang/zh_CN.json + __() 引用),支付过滤补 label,消除后台表格/表单英文
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
namespace App\Filament\Resources\Links\Schemas;
|
||||
|
||||
use Filament\Forms\Components\TextInput;
|
||||
@@ -16,17 +15,21 @@ class LinkForm
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('name')
|
||||
->label(__('link.name'))
|
||||
->required(),
|
||||
TextInput::make('url')
|
||||
->label(__('link.url'))
|
||||
->url()
|
||||
->required(),
|
||||
TextInput::make('note'),
|
||||
TextInput::make('note')
|
||||
->label(__('link.note')),
|
||||
TextInput::make('display_order')
|
||||
->label(__('link.display_order'))
|
||||
->required()
|
||||
->numeric()
|
||||
->default(0),
|
||||
Toggle::make('visible')
|
||||
->required(),
|
||||
->label(__('link.visible')),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user