Laravel Boolean Dates #137
Closed
sebastiaanluca
started this conversation in
Package Suggestions
Replies: 1 comment 1 reply
-
Thanks for the suggestion 😊 I've added the package! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Automatically convert Eloquent model boolean fields to dates (and back to booleans) so you always know when something was accepted or changed.
Say you've got a registration page for users where they need to accept your terms and perhaps can opt-in to certain features using checkboxes. With the new(-ish) GDPR privacy laws, you're somewhat required to not just keep track of the fact if they accepted those (or not), but also when they did.
https://github.com/sebastiaanluca/laravel-boolean-dates
Example
User registration controller:
Anywhere else in your code:
Beta Was this translation helpful? Give feedback.
All reactions