Repository navigation
v7.1
We're thrilled to bring you the latest version of our fork of laravelcollective/html. This update sees a host of new features, improvements, and fixes, all aimed at enhancing your development experience.
📄 Changelog
➕ Added
-
Customisation of
_methodHidden Input: Now, you can not only use['method' => 'post']as before but also use['method' => ['value' => 'post', 'id' => 'something']]to add attributes! -
Support for Carbon and DateTimeInterface: We now provide support for Carbon and any DateTimeInterface objects when using date or similar fields (date, datetime, datetimelocal, time, week & selectX fields).
-
Support for Non-existing Model in Form::model: Previously, passing a non-existing model to Form::model caused a fatal error. We've added support for this case to prevent such issues.
-
getFormAttribute for Date Fields: Prior to this release, getFormAttribute didn't listen to casts for date fields. We've addressed this issue, and it now works as expected.
❌ Removed
-
Deprecated strftime Usage: We've removed the deprecated strftime usage, aligning with PHP 8.0 standards.
-
Old Middleware Checker: The obsolete middleware checker which didn't actually check if it was active on the current request has been removed.
-
CSRF Tokens Unremovable: We've added an option to remove the automatic generation of CSRF tokens. You can now chain
->withoutCSRF()toForm::openorForm::modelto stop this from happening.
🔁 Miscellaneous Changes
-
Mockery Updated to 1.6.2: We've updated mockery to version 1.6.2, ensuring you're using the latest and most secure version.
-
Re-added Support for Unnamed Parameters on link_to_route and toRoute: Thanks to mgralikowski, we've restored support for unnamed parameters on
link_to_routeandtoRoute. -
Restored HtmlString Usage: We found out that HtmlString usage was accidentally removed in version 7.0. We've fixed this issue (thanks again to mgralikowski!)
We hope you enjoy these improvements! As always, we greatly appreciate your feedback and contributions. Let's continue building something incredible together!