init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?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(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user