PHP code example of stafe-group-ab / filament-bookmarks-menu
1. Go to this page and download the library: Download stafe-group-ab/filament-bookmarks-menu 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/ */
stafe-group-ab / filament-bookmarks-menu example snippets
return [
'bookmark_icon' => 'heroicon-o-bookmark',
'bookmark_class' => 'w-5 h-5 cursor-pointer text-gray-700 dark:text-gray-200',
'add_bookmark_icon' => 'heroicon-o-bookmark',
'remove_bookmark_icon' => 'heroicon-s-bookmark',
'add_bookmark_class' => 'w-6 h-6 cursor-pointer text-danger-700 dark:text-gray-200',
'remove_bookmark_class' => 'w-6 h-6 cursor-pointer text-danger-700 dark:text-gray-200',
'add_bookmarks_by_users' => true,
'exclude_pages' => ['admin', 'bookmarks-menus'],
'notification_add_icon' => 'heroicon-o-bookmark',
'notification_remove_icon' => 'heroicon-o-bookmark',
'notification_add_color' => 'success',
'notification_remove_color' => 'danger',
'show_resource_in_navigation' => false,
'delete_icon' => 'heroicon-o-trash',
'delete_class' => 'w-5 h-5 cursor-pointer text-danger-700 dark:text-gray-200',
'delete_text_class' => 'cursor-pointer text-white bg-black dark:text-gray-200',
'show_private_label_in_menu' => false,
'show_global_label_in_menu' => false,
];
'add_bookmarks_by_users' => true,
'delete_icon' => 'heroicon-o-trash',
'delete_class' => 'w-5 h-5 cursor-pointer text-danger-700 dark:text-gray-200',
'delete_text_class' => 'cursor-pointer text-white bg-black dark:text-gray-200',
'show_private_label_in_menu' => false,
'show_global_label_in_menu' => false,
'exclude_pages' => ['admin', 'bookmarks-menus'],
bash
php artisan vendor:publish --tag="filament-bookmarks-menu-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-bookmarks-menu-config"
bash
php artisan vendor:publish --tag="filament-bookmarks-menu-views"
bash
php artisan vendor:publish --tag="filament-bookmarks-menu-translations"