31 lines
818 B
PHP
31 lines
818 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Bookmakers\Schemas;
|
|
|
|
use Filament\Forms\Components\FileUpload;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class BookmakerForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')
|
|
->required(),
|
|
TextInput::make('icon')
|
|
->required(),
|
|
FileUpload::make('image')
|
|
->preserveFilenames()
|
|
->default(null),
|
|
TextInput::make('baid')
|
|
->numeric()
|
|
->default(0),
|
|
TextInput::make('txid')
|
|
->numeric()
|
|
->default(0),
|
|
]);
|
|
}
|
|
}
|