Skip to content

Commit 72f2982

Browse files
authoredMay 19, 2020
Merge pull request #61 from rogermui/route-param
more examples of route parameters
2 parents 8ed7f0a + 65eaff4 commit 72f2982

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎html.md

+4
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ You may pass in route parameters as well:
7777
```php
7878
echo Form::open(['route' => ['route.name', $user->id]])
7979

80+
echo Form::open(['route' => ['route.name', 'id' => $user->id, 'foo' => 'bar']])
81+
8082
echo Form::open(['action' => ['Controller@method', $user->id]])
83+
84+
echo Form::open(['action' => ['Controller@method', 'id' => $user->id, 'foo' => 'bar']])
8185
```
8286

8387
If your form is going to accept file uploads, add a `files` option to your array:

0 commit comments

Comments
 (0)
Please sign in to comment.