New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form::open with a route cannot pass parameters #491
Comments
Fixed. Good catch! |
What about if my route looks like that ? Route::post('/kpi/:id/settings', array('as' => 'kpi.settings.save', 'uses' => 'KpiController@saveSettings')); This doesn't seem to work: {{Form::open(array('route' => array('kpi.settings.save', array('id' => 1))))}} |
@fanals, do you need to use |
Thanks @bahoo I have no idea why I used a colon. So yes it works just by using: {{ Form::open(array('route' => array('kpi.settings.save', 1))) }} |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think that there is a way to pass route parameters to a Form::open that uses routes.
My proposal is that we can pass an array for the route key's value like this:
and in the Illuminate\Html\FormBuilder's getAction() 537:
The text was updated successfully, but these errors were encountered: