adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

Add support for Laravel route #65

Closed jrean closed 9 years ago

jrean commented 9 years ago

Hi @adamwathan,

The package is awesome! It would be perfect (to me) if I could declare route name (with route parameters) in place for the action.

Is there a reason this is not implemented? Are you interested by implementing it?

:)

J.

jrean commented 9 years ago

Mmm I guess we can use the route() helper function inside the action method... Is that the way you thought the logic?

adamwathan commented 9 years ago

Hey man! Yeah I recommend you use the route() helper inside of the action() method like you're suggesting:

BootForm::open()->action(route('sweet.website'))

This package is meant to be framework agnostic so I don't want to couple it tightly to how the routing works in Laravel :+1:

jrean commented 9 years ago

Thank you @adamwathan :)