Skip to content

Commit

Permalink
Update router.md
Browse files Browse the repository at this point in the history
Fix typos pointed out by Marc
  • Loading branch information
josephcrowell authored Jul 10, 2024
1 parent 8b95576 commit 52267c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ Route::group(['middleware' => 'Path\To\Your\Middleware'], function() {
});
```

If you want to assign a group of middleware to just one route you can it like this
If you want to assign a group of middleware to just one route you can do it like this:

```php
Route::middleware(['Path\To\Your\Middleware'])->group(function() {
Route::get('info', 'Acme\News@info');
});
```

And finally, if you want to remove middleware from a route you can it like this
And finally, if you want to remove middleware from a route you can do it like this:

```php
Route::withoutMiddleware(\Path\To\Removed\Middleware::class)
Expand Down

0 comments on commit 52267c1

Please sign in to comment.