PHP code example of helios-live / filament-feature-showcase
1. Go to this page and download the library: Download helios-live/filament-feature-showcase 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/ */
helios-live / filament-feature-showcase example snippets
use HeliosLive\FilamentFeatureShowcase\FeatureShowcasePlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(FeatureShowcasePlugin::make());
}
protected $casts = [
'preferences' => 'array',
];
Schema::table('users', function (Blueprint $table) {
$table->json('preferences')->nullable();
});
return [
'current' => '1.2.0',
'user_column' => 'preferences',
'preference_key' => 'last_seen_version',
'dismiss_route' => '/admin/dismiss-version-showcase',
'changelog' => [
'1.2.0' => [
'title' => 'Dark Mode Support',
'description' => 'Full dark mode support across the platform.',
'features' => [
[
'icon' => 'heroicon-o-moon',
'title' => 'Dark Mode',
'description' => 'Toggle between light and dark themes.',
],
],
],
'1.1.0' => [
'title' => 'Search Improvements',
'description' => 'Find what you need faster.',
'features' => [
[
'icon' => 'heroicon-o-magnifying-glass',
'title' => 'Global Search',
'description' => 'Search across all resources instantly.',
],
],
],
],
];
FeatureShowcasePlugin::make()
->showSidebarVersion(true) // Show version in sidebar footer (default: true)
->showButton(true) // Show the floating "What's New" button (default: true)
->buttonPosition('bottom-left') // Button position: bottom-left, bottom-right, top-left, top-right
'changelog' => [
'1.2.0' => [
'title' => 'Dark Mode Support',
'description' => 'Full dark mode support across the platform.',
'features' => [
[
'icon' => 'heroicon-o-moon',
'title' => 'Dark Mode',
'description' => 'Toggle between light and dark themes.',
],
],
],
],
// lang/es/changelog.php
return [
'versions' => [
'1_2_0' => [
'title' => 'Compatibilidad con modo oscuro',
'description' => 'Compatibilidad completa con modo oscuro en toda la plataforma.',
'features' => [
'dark_mode' => [
'title' => 'Modo oscuro',
'description' => 'Alterna entre temas claros y oscuros.',
],
],
],
],
];