Files
hoshal-market/app/Filament/Resources/CarouselSlides/Schemas/CarouselSlideForm.php
Mekan1206 b13d61b342 Update project dependencies and configuration
- Added Filament and Tailwind CSS dependencies in composer.json.
- Updated AGENTS.md to include new package versions.
- Modified boost.json to include tailwindcss-development skill.
- Updated DatabaseSeeder to create an admin user with a password.
- Changed the root route to use HomeController instead of a closure.
- Adjusted permissions for .gitignore in storage directory.
2026-06-04 21:30:06 +05:00

33 lines
892 B
PHP

<?php
namespace App\Filament\Resources\CarouselSlides\Schemas;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Schema;
class CarouselSlideForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
FileUpload::make('image')
->image()
->visibility('public')
->required(),
TextInput::make('title'),
TextInput::make('subtitle'),
TextInput::make('order')
->required()
->numeric()
->default(0),
Toggle::make('is_active')
->default(true)
->required(),
]);
}
}