From 54f3d0474f39dc6b1fb7105ba3278781cd850f34 Mon Sep 17 00:00:00 2001 From: Felix Kiss Date: Mon, 10 Jun 2013 18:57:12 +0200 Subject: [PATCH] Add example for Form::open() with route parameters --- html.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html.md b/html.md index 732f35ad746..21d272fd184 100644 --- a/html.md +++ b/html.md @@ -32,6 +32,12 @@ You may also open forms that point to named routes or controller actions: echo Form::open(array('action' => 'Controller@method')) +You may pass in route parameters as well: + + echo Form::open(array('route' => array('route.name', $user->id))) + + echo Form::open(array('action' => array('Controller@method', $user->id))) + If your form is going to accept file uploads, add a `files` option to your array: echo Form::open(array('url' => 'foo/bar', 'files' => true))