Skip to content

Commit

Permalink
Merge branch 'release/2.9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmypuckett committed Apr 14, 2024
2 parents b412e7d + 0b75c93 commit f9f21e7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.9.0
2.9.1
19 changes: 19 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,25 @@ When a Laravel `User` logs out, to log out their Discourse session Simply add th
];
```

### Laravel 11

In Laravel 11, the use of the `EventServiceProvider` is discouraged and events [should be registered in the `AppServiceProvider`](https://laravel.com/docs/11.x/events#manually-registering-events).

Therefore, the implementation is slightly different, and it should be registered within the `boot` method of the `AppServiceProvider` as per the example below.

```php
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Event::listen(
\Illuminate\Auth\Events\Logout::class,
\Spinen\Discourse\Listeners\LogoutDiscourseUser::class
);
}
```

## Left to do

* badges for user
Expand Down

0 comments on commit f9f21e7

Please sign in to comment.