category edit
This commit is contained in:
parent
cef7923531
commit
5cd77faf79
@ -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),
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user