@@ -38,13 +38,13 @@ composer require lbausch/flarum-laravel-session
38
38
Register the ` \Bausch\FlarumLaravelSession\FlarumSessionMiddleware ` middleware in ` app/Http/Kernel.php ` :
39
39
``` php
40
40
/**
41
- * The application's route middleware.
41
+ * The application's middleware aliases .
42
42
*
43
- * These middleware may be assigned to groups or used individually .
43
+ * Aliases may be used instead of class names to conveniently assign middleware to routes and groups .
44
44
*
45
- * @var array
45
+ * @var array< string , class-string|string >
46
46
*/
47
- protected $routeMiddleware = [
47
+ protected $middlewareAliases = [
48
48
// ...
49
49
'flarum' => \Bausch\FlarumLaravelSession\FlarumSessionMiddleware::class,
50
50
// ...
@@ -84,7 +84,7 @@ To avoid Laravel from trying to encrypt the Flarum session cookie, add the follo
84
84
/**
85
85
* The names of the cookies that should not be encrypted.
86
86
*
87
- * @var array
87
+ * @var array< int , string >
88
88
*/
89
89
protected $except = [
90
90
'flarum_session',
@@ -121,10 +121,8 @@ class AppServiceProvider extends ServiceProvider
121
121
{
122
122
/**
123
123
* Register any application services.
124
- *
125
- * @return void
126
124
*/
127
- public function register()
125
+ public function register(): void
128
126
{
129
127
//
130
128
}
@@ -134,7 +132,7 @@ class AppServiceProvider extends ServiceProvider
134
132
*
135
133
* @return void
136
134
*/
137
- public function boot()
135
+ public function boot(): void
138
136
{
139
137
FlarumLaravelSession::handleIdentifiedUser(YourCustomHandler::class);
140
138
}
0 commit comments