diff --git a/README.md b/README.md index 41efad4..8fa53aa 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ - + -
+
- + - + @@ -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.