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
Moved all instances of env() out of the app folder. Laravel doesn't like when env() is used in the app folder.
Created two new varibles in the app config file
email_new_user_notification for email to send new registrations too
disable_signup for disabling signup
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
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.
This normalizes all relationships and adds relations to models to take advantage of laravel's eagerloading and reduce queries to the database.
This might go against the 'add any kind of complexities whatsoever' rule in the contribution guide, but I think adding relations would eventually simplify the code base. The amount of queries just on the dashboard fell from ~70 to 26. There's also a lot of boilerplate code in the Contact model to retrieve relationships and to maintain accurate count of them (fields like number_of_*). They can be greatly simplified with the addition of relations.
One other thing in the Contact model was the definition of the Contact-User relation. This definition uses the account_id field in the contacts table and and relates it to id in users. I'm not sure if this is the intention, since the id from accounts table is used when assigning account_id for a contact. This seems to have worked so far, because both a user and its associated account are created at the same time during registration and their ids match, but if there was any difference, this relationship would relate wrong contacts and users. I changed the relationship name to account. This makes the path to a user from a contact is $contact->account->user right now.
* add new currency table and make debt currency agnostic
* removed currencytableseeder from production run job
* russian ruble added to currencies
* fix up default value
* fix down migration and remove seed
* adding pt-br app lang
* adding pt-br dashboard lang
* adding pt-br people lang
* adding a pt-br lang
* set lang tweak
* header lang tweak
* adding a success lang at settings