PHP code example of bobimicroweber / filament-dropdown-column
1. Go to this page and download the library: Download bobimicroweber/filament-dropdown-column 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/ */
bobimicroweber / filament-dropdown-column example snippets
DropdownColumn::make('is_active')
->size('sm')
->options([
1 => 'Published',
0 => 'Unpublished',
])
DropdownColumn::make('is_active')
->size('sm')
->options([
1 => 'Published',
0 => 'Unpublished',
])
->icon(fn (string $state): string => match ($state) {
'0' => 'heroicon-o-clock',
'1' => 'heroicon-o-check',
default => 'heroicon-o-clock',
})
->color(fn (string $state): string => match ($state) {
'0' => 'warning',
'1' => 'success',
default => 'gray',
}),
bash
php artisan vendor:publish --tag="filament-dropdown-column-views"