This is the first part of the API. It supports most of contacts, as well as the
journal. This PR also brings Monica to Laravel 5.5, as the API required it with
the new concept of resources. It needs to run `php artisan migrate` as well as
`php artisan passport:keys` to generate the access tokens needed for the API.
Closes#21
- On Contact/Significant Other/Kid edit, selecting a radio button about the age will auto select the related input field.
- Simplified the JS of the app so we don't require individual vanilla JS files.
* When adding an exact birthdate for a contact, a significant other or a kid, a reminder is now automatically created.
* When editing this date, the reminder will be automatically updated.
* When deleting the object, the associated reminder will be deleted.
* Fix birthdate data in production.
* Fix duplication of reminders when updating a contact.
* Add a new way of tracking birthdays in the reminders table.
Fix#325
* Edit relation docblocks of Contact model
* Move activities to its own controller
* Move reminders to its own controller
* Move tasks to its own controller
* Refactor Gift in preparation for the move
* Move gifts into its own controller
* Fix failing tests
* Move debt to its own controllelr
* Fix tests failing on PHP7
* Move significant others to its own controller
* Move kids to its own controller
* Move notes to its own controller
* Some more adjustments & solving #277
And more query optimizations
This is just causing too much headache, especially since I made the rookie mistake of not checking the max length of some entries when inserting the gift. That leads to errors in the decryption process.
In production, out of the thousands of gifts already entered, only 5 are not decryptable. I have no other choice than resetting these 5 rows. I'm really sorry about this.
If you do end up having problems running the migration in your own instance, you need to remove the rows that are un-decryptable in the Gifts table as well.