sparksp/laravel-bootstrap — pull request #3 by mcintyre94 (2012-09-03 21:46:11+00:00)
Title: Fixed a bug where submit without any class attribute causes an error

Previously calling submit without giving the new button a class in the attributes array caused an error, with $attributes['class'] undefined. This version handles that case by adding ' btn' to the classes array if it's present, but setting $attributes['class'] to 'btn' if not. The error is no longer present.

Signed-off-by: Callum McIntyre