PHP code example of ngankt2 / filament-menu-top-switcher

1. Go to this page and download the library: Download ngankt2/filament-menu-top-switcher 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/ */

    

ngankt2 / filament-menu-top-switcher example snippets


   use Ngankt2\FilamentMenuTopSwitcher\FilamentMenuTopSwitcherPlugin;

   public function panel(Panel $panel): Panel
   {
       return $panel
           // ... other panel configurations
           ->plugin(FilamentMenuTopSwitcherPlugin::make());
   }
   
bash
   php artisan vendor:publish --tag=filament-menu-top-switcher-translations