Skip to content

Commit

Permalink
Merge pull request #117 from HassanZahirnia/patch-1
Browse files Browse the repository at this point in the history
Change $routeMiddleware to $middlewareAliases
  • Loading branch information
freekmurze authored May 22, 2023
2 parents d6028e3 + 8854d52 commit 66b4154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ If you want to automatically optimize images that get uploaded to your applicati

```php
// app/Http/Kernel.php
protected $routeMiddleware = [
protected $middlewareAliases = [
...
'optimizeImages' => \Spatie\LaravelImageOptimizer\Middlewares\OptimizeImages::class,
];
Expand Down

0 comments on commit 66b4154

Please sign in to comment.