- 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.
33 lines
892 B
PHP
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(),
|
|
]);
|
|
}
|
|
}
|