Skip to content

Commit 4aebb49

Browse files
Add isset magic method and bump version.
1 parent 5514157 commit 4aebb49

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.10.0
2+
- Add `buttongroup` field type - #298 (Thanks to [@noxify](https://github.com/noxify))
3+
- Allow custom `id` and `for` attributes for a field - #285
4+
- Fix accessing fields from twig by adding `__isset` magic method - #301
5+
- Use custom Form macro for labels in views
6+
17
## 1.9.0
28
- Bump minimum php version to 5.6 - #276 (Thanks to [@max-kovpak](https://github.com/max-kovpak))
39
- Add support for Laravel 5.3 and fix EntityType lists method - #276 (Thanks to [@max-kovpak](https://github.com/max-kovpak))

src/Kris/LaravelFormBuilder/Form.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,16 @@ public function __get($name)
632632
}
633633
}
634634

635+
/**
636+
* Check if field exists when fetched using magic methods
637+
* @param $name
638+
* @return bool
639+
*/
640+
public function __isset($name)
641+
{
642+
return $this->has($name);
643+
}
644+
635645
/**
636646
* Set the Event Dispatcher to fire Laravel events
637647
*

0 commit comments

Comments
 (0)