PHP code example of doriiaan / filament-translatable-menu-builder
1. Go to this page and download the library: Download doriiaan/filament-translatable-menu-builder 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/ */
doriiaan / filament-translatable-menu-builder example snippets
return [
'tables' => [
'menus' => 'menus',
'menu_tarnslations' => 'menu_translations',
'menu_items' => 'menu_items',
],
];
use Doriiaan\FilamentTranslatableMenuBuilder\FilamentTranslatableMenuBuilderPlugin;
$panel
...
->plugin(FilamentTranslatableMenuBuilderPlugin::make())
bash
php artisan vendor:publish --tag="filament-translatable-menu-builder-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-translatable-menu-builder-config"
bash
php artisan vendor:publish --tag="filament-translatable-menu-builder-views"