Skip to content

Releases: spatie/laravel-html

2.6.0

11 Oct 10:46
Compare
Choose a tag to compare
  • Added BaseElement::setChildren to replace all children
  • Fixed a bug that didn't select options in optgroups when applying a value

2.5.0

11 Oct 06:40
Compare
Choose a tag to compare
  • Added BaseElement::style for setting the style attribute (with a string or an associative array)
  • Added Html::reset for form reset buttons

2.4.1

07 Sep 19:10
Compare
Choose a tag to compare
  • Nothing changed, but 2.2.0 was accidentally tagged as 2.4.0. This release contains the actual latest version at the time of writing.

2.3.0

04 Sep 12:27
Compare
Choose a tag to compare
  • Added checked and unchecked methods to Input

2.4.0

29 Aug 07:56
Compare
Choose a tag to compare
  • Added Optgroup element
  • Added the ability to create optgroups in Options by passing an array of groups with options

2.1.0

24 Aug 12:28
Compare
Choose a tag to compare
  • Added Html::file and a File element for file inputs

2.0.2

14 Jul 12:16
Compare
Choose a tag to compare
  • Fixed an issue that stripped square brackets from element attributes

2.0.1

28 Jun 12:23
Compare
Choose a tag to compare
  • Fixed the Html facade

2.0.0

13 Jun 09:01
Compare
Choose a tag to compare

Version 2.0 was tagged because it could break some very specific cases, but you most likely don't have any work upgrading! Check out "Upgrading" for a detailed explanation.

  • Minimum requirements have been reduced to PHP 7.0
  • Added a html() helper function that returns an instance of Html
  • Added Macroable to all elements and Html
  • Loosened type hints in method signatures for flexibility
  • Added Html::multiselect method
  • Added Select::multiple method

1.5.0

19 May 07:57
Compare
Choose a tag to compare
  • Added class method to Html