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.
* 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
I've named the route for this just to make the code a bit more readable. I think the problem is due to sessions expiring prior to people submitting the form and thus the token on the other side is dead causing the exception.
Fix#141