akira/filament-switch-panel

This is my package filament-switch-panel
4,753 5
Install
composer require akira/filament-switch-panel
Latest Version:v1.3.1
PHP:^8.1
License:MIT
Last Updated:Jun 19, 2026
Links: GitHub  ·  Packagist
Maintainer: kidiatoliny

Filament Switch Panel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require akira/filament-switch-panel

optionally, you can publish the views to customise the switch panel.

php artisan vendor:publish --tag="filament-switch-panel-views"

Filament Compatibility

This package supports both Filament v3.x and Filament v4.x. The package will automatically detect the installed version and work seamlessly with either version.

Customisation

to start your customisation, use the configureUsing method in your service provider's boot method.

use Akira\FilamentSwitchPanel\FilamentSwitchPanel;


FilamentSwitchPanel::configureUsing(function (FilamentSwitchPanel $switchPanel) {

	$switchPanel->modalHeading('Modal Heading')
	->modalWidth('md')
	->slideOver()
	->simple()
	->labels([
		'admin' => 'Admin',
		'user' => 'User',
	])
	->icons([
		'admin' => 'heroicon-o-user',
		'user' => 'heroicon-o-user',
	], $asImage = false)
	->iconSize(32)
	->visible(fn (): bool => auth()->user()?->hasAnyRole(['admin',]))
	->canSwitchPanels(fn (): bool => auth()->user()?->can('switch-panels'))
	->excludes(['user'])
	->renderHook('panels::global-search.before')

});

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

akira/filament-slim-scrollbar

This is my package filament-slim-scrollbar

2,109 6
akira/filament-tool-kit

This is my package filament-tool-kit

6,886 8
akira/laravel-spectra

Illuminate your API — interactive inspector for Laravel 12 with Inertia + React

13 4
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,303 162
kavenegar/laravel

laravel 4 and 5 kavenegar integration

350,771 85