Skip to content

Commit

Permalink
Use an instead of a before HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdcdg committed Mar 13, 2019
1 parent a6c5c5a commit ef2c1f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blade.md
Expand Up @@ -439,7 +439,7 @@ In some situations, it's useful to embed PHP code into your views. You can use t
<a name="csrf-field"></a>
### CSRF Field

Anytime you define a HTML form in your application, you should include a hidden CSRF token field in the form so that [the CSRF protection](https://laravel.com/docs/{{version}}/csrf) middleware can validate the request. You may use the `@csrf` Blade directive to generate the token field:
Anytime you define an HTML form in your application, you should include a hidden CSRF token field in the form so that [the CSRF protection](https://laravel.com/docs/{{version}}/csrf) middleware can validate the request. You may use the `@csrf` Blade directive to generate the token field:

<form method="POST" action="/profile">
@csrf
Expand Down
4 changes: 2 additions & 2 deletions csrf.md
Expand Up @@ -12,7 +12,7 @@ Laravel makes it easy to protect your application from [cross-site request forge

Laravel automatically generates a CSRF "token" for each active user session managed by the application. This token is used to verify that the authenticated user is the one actually making the requests to the application.

Anytime you define a HTML form in your application, you should include a hidden CSRF token field in the form so that the CSRF protection middleware can validate the request. You may use the `@csrf` Blade directive to generate the token field:
Anytime you define an HTML form in your application, you should include a hidden CSRF token field in the form so that the CSRF protection middleware can validate the request. You may use the `@csrf` Blade directive to generate the token field:

<form method="POST" action="/profile">
@csrf
Expand Down Expand Up @@ -57,7 +57,7 @@ Typically, you should place these kinds of routes outside of the `web` middlewar
<a name="csrf-x-csrf-token"></a>
## X-CSRF-TOKEN

In addition to checking for the CSRF token as a POST parameter, the `VerifyCsrfToken` middleware will also check for the `X-CSRF-TOKEN` request header. You could, for example, store the token in a HTML `meta` tag:
In addition to checking for the CSRF token as a POST parameter, the `VerifyCsrfToken` middleware will also check for the `X-CSRF-TOKEN` request header. You could, for example, store the token in an HTML `meta` tag:

<meta name="csrf-token" content="{{ csrf_token() }}">

Expand Down
2 changes: 1 addition & 1 deletion mail.md
Expand Up @@ -170,7 +170,7 @@ Within a mailable class' `build` method, you may use the `view` method to specif
#### Plain Text Emails

If you would like to define a plain-text version of your email, you may use the `text` method. Like the `view` method, the `text` method accepts a template name which will be used to render the contents of the email. You are free to define both a HTML and plain-text version of your message:
If you would like to define a plain-text version of your email, you may use the `text` method. Like the `view` method, the `text` method accepts a template name which will be used to render the contents of the email. You are free to define both an HTML and plain-text version of your message:

/**
* Build the message.
Expand Down

0 comments on commit ef2c1f2

Please sign in to comment.