Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Feb 25, 2023
1 parent 3b5c129 commit 08e953d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/csrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
Laravel has built-in CSRF protection in place. It essentially prevents our app from processing any non-GET requests that don't have a valid CSRF Token in them. So, to allow a POST form to be processed, we usually need to add a `@csrf` Blade directive to our forms:

```blade
<form action="{{ route('chirps.store }}" method="post">
<form action="{{ route('chirps.store') }}" method="post">
@csrf
<!-- ... -->
</form>
```

Expand Down

0 comments on commit 08e953d

Please sign in to comment.