category edit

This commit is contained in:
Russ Long 2022-08-06 16:24:05 -04:00
parent cef7923531
commit 5cd77faf79
2 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class CarShowCategoryResource extends Resource
return $form
->schema([
TextInput::make('category_name'),
Toggle::make('vehicle_category'),
Toggle::make('vehicle_category')->inline(false),
]);
}

View File

@ -9,6 +9,10 @@ class CarShowCategory extends Model
protected $table = 'car_show_categories';
protected static ?string $recordTitleAttribute = 'category_name';
protected $casts = [
'vehicle_type' => 'boolean',
];
protected $fillable = [
'category_name',
'vehicle_type'