diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fa003a6..0799c83d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.10.0 +- Add `buttongroup` field type - #298 (Thanks to [@noxify](https://github.com/noxify)) +- Allow custom `id` and `for` attributes for a field - #285 +- Fix accessing fields from twig by adding `__isset` magic method - #301 +- Use custom Form macro for labels in views + ## 1.9.0 - Bump minimum php version to 5.6 - #276 (Thanks to [@max-kovpak](https://github.com/max-kovpak)) - Add support for Laravel 5.3 and fix EntityType lists method - #276 (Thanks to [@max-kovpak](https://github.com/max-kovpak)) diff --git a/src/Kris/LaravelFormBuilder/Form.php b/src/Kris/LaravelFormBuilder/Form.php index b0c7b68f..bd53be24 100644 --- a/src/Kris/LaravelFormBuilder/Form.php +++ b/src/Kris/LaravelFormBuilder/Form.php @@ -632,6 +632,16 @@ public function __get($name) } } + /** + * Check if field exists when fetched using magic methods + * @param $name + * @return bool + */ + public function __isset($name) + { + return $this->has($name); + } + /** * Set the Event Dispatcher to fire Laravel events *