Build & Deploy / build (push) Successful in 18s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
27 lines
706 B
PHP
27 lines
706 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Achievements\Schemas;
|
|
|
|
use Filament\Forms\Components\DateTimePicker;
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class AchievementForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
Select::make('user_id')
|
|
->relationship('user', 'name')
|
|
->required(),
|
|
TextInput::make('key')
|
|
->required(),
|
|
DateTimePicker::make('earned_at')
|
|
->required(),
|
|
TextInput::make('meta'),
|
|
]);
|
|
}
|
|
}
|