The DB has changed a lot in the last months. If we want to be able to
track how people are using the application, we need to add more statistics
at the instance level. This shouldn't be too hard on the DB to calculate those
every night at midnight.
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.
Moving from `kids` to `offsprings` broke the fake content seeder as
children are now contacts too. This commit generates a new contact
before attaching them as an offspring of the original contact
* List of people has now a header, with the number of contacts and the Sort filter in another place.
* Add much more data when seeding fake data. This will help have better real data when testing the product.
* Add a couple of unit tests here and there.
* Cleanup some methods.
* Truncate data on the dashboard so it's not messy if there is a lot of data.
Not everyone lives in the western culture. In some countries, names are not defined in the `firstname lastname` order, but rather the opposite, `lastname firstname`.
You can now define this order in your Settings panel.
Close#372
This pull request adds support to multi users in one account. It also introduces the notion of subscriptions.
Accounts can now have multiple users.
Subscriptions are defined by a new env variable called REQUIRES_SUBSCRIPTION, and defaults to false. As promised, all the paid features on .com will be free if you download and host Monica on your own server.
* 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
The idea is that the instance owner can decide what should be the default timezone for every new user on the system. Also:
* change default APP_KEY to 32 char (avoid warning on specif openssl version) and update readme to remember 'php artisan key:generate' usage