more resource setup
This commit is contained in:
@ -9,6 +9,7 @@ use Filament\Resources\Table;
|
||||
use Filament\Tables;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
use App\Models\CarShowCategory;
|
||||
|
||||
class VehiclesRelationManager extends RelationManager
|
||||
{
|
||||
@ -20,9 +21,16 @@ class VehiclesRelationManager extends RelationManager
|
||||
{
|
||||
return $form
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('owner')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
Forms\Components\TextInput::make('year')
|
||||
->label('Year'),
|
||||
Forms\Components\TextInput::make('make')
|
||||
->label('Make'),
|
||||
Forms\Components\TextInput::make('model')
|
||||
->label('Model'),
|
||||
Forms\Components\Select::make('type')
|
||||
->label('Type')
|
||||
->options(CarShowCategory::vehtype()->pluck('category_name', 'id'))
|
||||
->searchable(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user