Skip to content

Commit c3a2cb2

Browse files
authored
Fix typo (#9023)
Both "an `App" and "a `App" appear in this documentation and most probably "an `App" is the correct version, so this PR is for consistency. See #9022 Sorry @taylorotwell , I thought I found them all, but I missed this one.
1 parent 1609eb7 commit c3a2cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ Laravel includes a middleware that can authorize actions before the incoming req
675675
// The current user may update the post...
676676
})->middleware('can:update,post');
677677

678-
In this example, we're passing the `can` middleware two arguments. The first is the name of the action we wish to authorize and the second is the route parameter we wish to pass to the policy method. In this case, since we are using [implicit model binding](/docs/{{version}}/routing#implicit-binding), a `App\Models\Post` model will be passed to the policy method. If the user is not authorized to perform the given action, an HTTP response with a 403 status code will be returned by the middleware.
678+
In this example, we're passing the `can` middleware two arguments. The first is the name of the action we wish to authorize and the second is the route parameter we wish to pass to the policy method. In this case, since we are using [implicit model binding](/docs/{{version}}/routing#implicit-binding), an `App\Models\Post` model will be passed to the policy method. If the user is not authorized to perform the given action, an HTTP response with a 403 status code will be returned by the middleware.
679679

680680
For convenience, you may also attach the `can` middleware to your route using the `can` method:
681681

0 commit comments

Comments
 (0)