Picker & Table Column & Icons Provider for FilamentPHP
composer require tomatophp/filament-icons
after install use this command to cache all icons
php artisan filament-icons:install
use TomatoPHP\FilamentIcons\Components\IconPicker;
public static function form(Form $form): Form
{
return $form
->schema([
IconPicker::make('icon')
->default('heroicon-o-academic-cap')
->label('Icon'),
]);
}
use TomatoPHP\FilamentIcons\Components\IconColumn;
public static function table(Table $table): Table
{
return $table
->columns([
IconColumn::make('icon')
->label('Icon'),
]);
}
you can add a custom icon lib by use this Facade class inside your provider like this
use TomatoPHP\FilamentIcons\Facades\FilamentIcons;
public function boot(): void
{
FilamentIcons::register('boxicons')
->asset('https://unpkg.com/[email protected]/css/boxicons.min.css')
->template('<i class="{ ICON }"></i>', 'text-xl', 'text-sm')
->icons([
"bx bx-accessibility",
"bx bx-add-to-queue",
"bx bx-adjust"
])
->replace(['bx ', 'bxs-', 'bxl-', 'bx-'])
->save();
}
than you need to clear cache by use this command
php artisan filament-icons:clear
to cache it again use this command
php artisan filament-icons:install
you can try add Box Icons using this snap Box Icon Snap
you can publish views file by use this command
php artisan vendor:publish --tag="filament-icons-views"
you can publish config file by use this command
php artisan vendor:publish --tag="filament-icons-config"
- Filament Users
- Filament Translations
- Filament Settings Hub
- Filament Alerts Sender
- Filament Accounts Builder
- Filament Wallet Manager
- Filament Artisan Runner
- Filament File Browser
- Filament Developer Gate
- Filament Locations Seeder
- Filament Menus Generator
- Filament Splade Integration
- Filament Types Manager
- Filament Plugins
- Filament Helpers Classes
you can join our discord server to get support TomatoPHP
you can check docs of this package on Docs
Please see CHANGELOG for more information on what has changed recently.
Please see SECURITY for more information about security.
The MIT License (MIT). Please see License File for more information.