This commit is contained in:
Ovidiu U
2026-05-12 09:47:26 +01:00
parent 3d103f19e1
commit 759e4f2784
183 changed files with 20094 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<?php
namespace App\Filament\Resources\Websites\Schemas;
use App\Models\Tier;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Schema;
class WebsiteForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('name')
->required(),
TextInput::make('domain')
->required(),
Select::make('tier_id')
->label('Tier')
->relationship('tier', 'name')
->required()
->searchable()
->preload(),
TextInput::make('cache_hit_rate_limit')
->required()
->numeric()
->default(100),
TextInput::make('external_api_rate_limit')
->required()
->numeric()
->default(10),
Toggle::make('is_active')
->required(),
Toggle::make('bypass_rate_limit')
->required(),
]);
}
}