
Add bookmarks and tags to your resources records and access theme form your sidebar








composer require tomatophp/filament-bookmarks-menu
after install your package please run this command
php artisan filament-bookmarks-menu:install
finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
->plugin(TomatoPHPFilamentBookmarksMenuFilamentBookmarksMenuPlugin::make())
you can add bookmark action to your page like this
use TomatoPHPFilamentBookmarksMenuFilamentActionsBookmarkAction;protected function getHeaderActions(): array{return [BookmarkAction::make()
];
}or to your table like this
use TomatoPHPFilamentBookmarksMenuFilamentTablesBookmarkAction;public function table(Table $table): void{$table->actions([BookmarkAction::make()
]);
}or to your table bulk actions like this
use TomatoPHPFilamentBookmarksMenuFilamentTablesBookmarkBulkAction;use TomatoPHPFilamentBookmarksMenuFilamentTablesBookmarkBulkClearAction;public function table(Table $table): void{$table->bulkActions([TablesActionsBulkActionGroup::make([BookmarkBulkAction::make(),BookmarkBulkClearAction::make()
]),
]);
}you can create custom bookmark type by use our Facade TomatoPHPFilamentBookmarksMenuFacadesFilamentBookmarksMenu register method like this
use TomatoPHPFilamentBookmarksMenuFacadesFilamentBookmarksMenu;use TomatoPHPFilamentBookmarksMenuServicesContractsBookmarkType;
public function boot()
{FilamentBookmarksMenu::register([BookmarkType::make('hashtags')->label('Hashtags')->panel('employee'),BookmarkType::make('folder')->label('Folders'),
]);
}to make label translatable you can use your path direct on label like this ->label('filament.bookmarks-menu::labels.hashtags')
you can publish config file by use this command
php artisan vendor:publish --tag="filament-bookmarks-menu-config"
you can publish views file by use this command
php artisan vendor:publish --tag="filament-bookmarks-menu-views"
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-bookmarks-menu-lang"
you can publish migrations file by use this command
php artisan vendor:publish --tag="filament-bookmarks-menu-migrations"
Checkout our Awesome TomatoPHP