category edit
This commit is contained in:
parent
cef7923531
commit
5cd77faf79
@ -29,7 +29,7 @@ class CarShowCategoryResource extends Resource
|
|||||||
return $form
|
return $form
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('category_name'),
|
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 $table = 'car_show_categories';
|
||||||
protected static ?string $recordTitleAttribute = 'category_name';
|
protected static ?string $recordTitleAttribute = 'category_name';
|
||||||
|
|
||||||
|
protected $casts = [
|
||||||
|
'vehicle_type' => 'boolean',
|
||||||
|
];
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'category_name',
|
'category_name',
|
||||||
'vehicle_type'
|
'vehicle_type'
|
||||||
|
Loading…
Reference in New Issue
Block a user