Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 4648f07

Browse files
committed
Update README.md
1 parent f218cc7 commit 4648f07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ There is no configuration needed unless you want to [customize the Blade views a
7777

7878
Generating HTML in PHP is always quite opinionated and limited. Blade Components are great because additional attributes are passed down to the element. That's why we prefer writing forms using components instead of using PHP builders. This way, you don't have to write extensions or custom code for any attribute you pass in. Let's take a look at this `x-form` example.
7979

80+
The `action` attribute is optional, but you can pass a hard-coded, primitive value to the component using a simple HTML attribute. PHP expressions and variables can be passed to the component as well via attributes that use the `:` character as a prefix. Do you need Alpine.js or VueJS directives? No problem!
81+
8082
```blade
8183
<x-form action="/api/user">
8284
<!-- ... -->

0 commit comments

Comments
 (0)