PHP code example of rectitude-open / filament-locale-picker
1. Go to this page and download the library: Download rectitude-open/filament-locale-picker 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/ */
rectitude-open / filament-locale-picker example snippets
return [
];
namespace App\Providers\Filament;
use RectitudeOpen\FilamentLocalePicker\FilamentLocalePickerPlugin;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
FilamentLocalePickerPlugin::make()
]);
}
}
bash
php artisan vendor:publish --tag="filament-locale-picker-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-locale-picker-config"
bash
php artisan vendor:publish --tag="filament-locale-picker-translations"