PHP code example of statikbe / laravel-filament-chained-translation-manager
1. Go to this page and download the library: Download statikbe/laravel-filament-chained-translation-manager 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/ */
statikbe / laravel-filament-chained-translation-manager example snippets
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
\Statikbe\FilamentTranslationManager\FilamentChainedTranslationManagerPlugin::make(),
]);
}
'locales' => [
'en',
'fr',
],
use Statikbe\FilamentTranslationManager\FilamentTranslationManager;
public function boot()
{
FilamentTranslationManager::setLocales(['en', 'nl']);
}
'gate' => 'view-filament-translation-manager',
'ignore_groups' => [
'auth',
],
javascript
"./vendor/statikbe/laravel-filament-chained-translation-manager/**/*.blade.php",
bash
php artisan vendor:publish --tag="filament-translation-manager-config"