Update CategoryForm to use Select for icon selection and modify DatabaseSeeder to comment out DemoSeeder call
- Replaced TextInput for 'icon' with a searchable Select input featuring various icon options. - Commented out the call to DemoSeeder in DatabaseSeeder to prevent execution during seeding.
This commit is contained in:
@@ -15,8 +15,25 @@ class CategoryForm
|
|||||||
TextInput::make('name')
|
TextInput::make('name')
|
||||||
->label('Ady')
|
->label('Ady')
|
||||||
->required(),
|
->required(),
|
||||||
TextInput::make('icon')
|
Select::make('icon')
|
||||||
->label('Ikonkasy'),
|
->label('Ikonkasy')
|
||||||
|
->options([
|
||||||
|
'cake' => 'Tort (Cake)',
|
||||||
|
'bakery_dining' => 'Çörek (Bakery)',
|
||||||
|
'local_cafe' => 'Kofe (Cafe)',
|
||||||
|
'icecream' => 'Doňdurma (Ice Cream)',
|
||||||
|
'cookie' => 'Köke (Cookie)',
|
||||||
|
'emoji_food_beverage' => 'Içgi (Beverage)',
|
||||||
|
'restaurant' => 'Restoran (Restaurant)',
|
||||||
|
'restaurant_menu' => 'Menýu (Menu)',
|
||||||
|
'local_dining' => 'Nahar (Dining)',
|
||||||
|
'celebration' => 'Baýramçylyk (Celebration)',
|
||||||
|
'star' => 'Ýyldyz (Star)',
|
||||||
|
'favorite' => 'Halanýan (Favorite)',
|
||||||
|
'redeem' => 'Sowgat (Gift)',
|
||||||
|
'local_mall' => 'Söwda (Shopping)',
|
||||||
|
])
|
||||||
|
->searchable(),
|
||||||
TextInput::make('order')
|
TextInput::make('order')
|
||||||
->label('Tertibi')
|
->label('Tertibi')
|
||||||
->required()
|
->required()
|
||||||
|
|||||||
@@ -26,6 +26,6 @@ class DatabaseSeeder extends Seeder
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->call(DemoSeeder::class);
|
// $this->call(DemoSeeder::class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user