Skip to content

Commit 08e953d

Browse files
committed
wip
1 parent 3b5c129 commit 08e953d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/csrf.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
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:
44

55
```blade
6-
<form action="{{ route('chirps.store }}" method="post">
6+
<form action="{{ route('chirps.store') }}" method="post">
77
@csrf
8+
9+
<!-- ... -->
810
</form>
911
```
1012

0 commit comments

Comments
 (0)