1. Go to this page and download the library: Download codenzia/filament-carousel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codenzia / filament-carousel example snippets
use Codenzia\FilamentCarousel\FilamentCarouselPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
FilamentCarouselPlugin::make(),
]);
}
use Codenzia\FilamentCarousel\Widgets\Carousel;
use Filament\Schemas\Schema;
use Filament\Schemas\Components\TextEntry;
use Filament\Support\Icons\Heroicon;
Carousel::make('projects')
->label('Active Projects')
->icon(Heroicon::Briefcase)
->navigation()
->slidesPerView(3)
->spaceBetween(20)
->cardSchema(fn (Schema $schema, $record) => $schema->components([
TextEntry::make('name')->label('Project'),
TextEntry::make('status')->badge(),
])),