Skip to content

Commit

Permalink
[docs] Update middleware example for Laravel 10
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte authored Feb 20, 2023
1 parent dca8046 commit 490fa00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/basic-usage/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ Route::group(['middleware' => ['can:publish articles']], function () {

This package comes with `RoleMiddleware`, `PermissionMiddleware` and `RoleOrPermissionMiddleware` middleware. You can add them inside your `app/Http/Kernel.php` file.

### Laravel 9
Note the differences between Laravel 10 and older versions of Laravel is the name of the `protected` property:

### Laravel 9 (and older)
```php
protected $routeMiddleware = [
// ...
Expand Down

0 comments on commit 490fa00

Please sign in to comment.