Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wychoong authored Jun 4, 2022
1 parent 8f95b84 commit 67626c2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,27 @@ return [
];
```

### Render hooks
Make use of Filament's render hook to register additional content without publishing views.


```php
## in Service Provider file
public function boot()
{
Filament::registerRenderHook(
'filament-fortify.login.end',
fn (): string => Blade::render('@livewire(\'filament-socialite.buttons\')'),
);
}
```

![Screenshot of hook for socialite](https://user-images.githubusercontent.com/67364036/171989863-67e10be6-6619-4bb0-b258-2fd64edecc00.png)

Available hooks
- filament-fortify.login.start
- filament-fortify.login.end

## Testing

```bash
Expand Down

0 comments on commit 67626c2

Please sign in to comment.