cmgmyr / laravel-messenger

Simple user messaging package for Laravel
MIT License
2.45k stars 514 forks source link

Count number of new messages for a user? #109

Closed extrakun closed 8 years ago

extrakun commented 8 years ago

I am trying to do a private mailbox function, and I would like to provide the number of new messages (not threads) for a user. What is the most efficient way of doing it?

antonkomarev commented 8 years ago

80 would this help you?

extrakun commented 8 years ago

It looks like it would! I am rather new to GitHub, how do I pull a pull-request using composer?

antonkomarev commented 8 years ago

@extrakun First of all you should define target fork in repositories block in composer.json file:

"repositories": [
    {
        "type": "git",
        "url": "git@github.com:cybercog/laravel-messenger.git"
    }
]

After that you will be able to get branches from it. For example if you want to pull branch with name hotfix/threads-relation you should update require section in composer.json file by defining a branch name prefixed with dev- instead of writing package version for selected package:

"require": {
    "cmgmyr/messenger": "dev-hotfix/threads-relation"
},