more resource setup

This commit is contained in:
2022-09-28 07:52:27 -04:00
parent ef96dc7cd8
commit a13c9be41c
4 changed files with 52 additions and 8 deletions

View File

@ -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(),
]);
}