launcher-host / mercurius

Real-time Messenger for Laravel
http://mercurius.launcher.host/
MIT License
326 stars 51 forks source link

Error if there is not "name" field on user model #28

Closed alextime closed 5 years ago

alextime commented 5 years ago

Error if there is no "name" field on user model.

Is it possible to override the name field based on ConversationRepository? I our installation there is no "name" field but "firstname" plus "last..." etc, maybe could be useful if we can override that field that there is hard coded on that repo right now. Actually I have no idea on how to override...

akazorg commented 5 years ago

Hi @alextime, thanks for your message, we will definitely update Mercurius in order to support that.

That change will affect mostly the ConversationRepository, but several other files require revision and there's no straightforward solution for now.

I've added #29 feature to extend users model.