From d42a90ac31c2527f39ee93529a8a8e3c70f2388f Mon Sep 17 00:00:00 2001 From: Bezhan Salleh Date: Mon, 31 Jul 2023 11:02:47 +0430 Subject: [PATCH] prepared readme for v3 --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 41efad4..8fa53aa 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ - + filament-shield-art -

+

FILAMENT 8.x Packagist - + Tests Passing - + Code Style Passing @@ -124,7 +124,7 @@ Optionally, you can publish the views using php artisan vendor:publish --tag="filament-language-switch-views" ``` -## Usage +## Plugin Usage Using the plugin is easy all you need to do is instanciate it to the `Panels` you want the plugin to be available in. ```php public function panel(Panel $panel): Panel @@ -137,7 +137,7 @@ public function panel(Panel $panel): Panel ... } ``` -## Configure the **Render Hook** +## Customize Render Hook By default the switch render in the `panels::global-search.after` hook but you can render the **Language Switch** in any of the [Render Hooks](https://beta.filamentphp.com/docs/3.x/panels/configuration#render-hooks) available in Filamentphp using the `renderHookName()` method inside your panel's `plugins()` method.