31 lines
907 B
PHP
31 lines
907 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\VehicleDataSources\Schemas;
|
|
|
|
use Filament\Forms\Components\DateTimePicker;
|
|
use Filament\Forms\Components\Select;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class VehicleDataSourceForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
Select::make('vehicle_record_id')
|
|
->relationship('vehicleRecord', 'id')
|
|
->required(),
|
|
TextInput::make('source_name')
|
|
->required(),
|
|
TextInput::make('source_url')
|
|
->url()
|
|
->required(),
|
|
DateTimePicker::make('last_fetched_at')
|
|
->required(),
|
|
DateTimePicker::make('cache_expires_at')
|
|
->required(),
|
|
]);
|
|
}
|
|
}
|