Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How are you using laravel-messenger?#366

cmgmyr started this conversation inShow and tell
Jul 16, 2015· 67 comments· 1 reply
Discussion options

Please leave a comment explaining how you are using this package. How many users are you supporting? What type of features have you had to implement to extend the base functionality of this package?

*If you have any issues, please open up a new ticket. Please keep this thread for feedback only. Thanks!

You must be logged in to vote

Replies: 67 comments 1 reply

Comment options

Implementing it for a Unit Manager internal messaging system. We aim to support at most 150+ users. Currently only using base functionality. I'll update I add anything more. Thanks for this awesome package!

You must be logged in to vote
0 replies
Comment options

We are using it for the same that mrgwilliam, but we are also implementating a notification system with other parts of the site. We have around 500 users in the site but the messenger is still in beta.

You must be logged in to vote
0 replies
Comment options

we are implementing it in an in-school network , however , having seen laravel 5.1 shouldbroadcast , we are thinking about using socket.io to build a realtime messaging platform , have you given any thought about this ? there's a package called 'confer' that already does this but with pusher

You must be logged in to vote
0 replies
Comment options

We are using it as a facebook-like private message system in a community website.
Thanks for this package !

You must be logged in to vote
0 replies
Comment options

cmgmyr
Aug 13, 2015
Maintainer Author

Thank you all for the great feedback so far!

@Pandahisham in the new version I'm planning on using events, so you'll be able to hook into those pretty easily. You'll still have to handle the front end processing on your own. I don't think it makes sense (at least at this time) to do anything with Pusher, or other services, inside this package

You must be logged in to vote
0 replies
Comment options

yap ! we will handle the frontend ourselfves , just give us a well documented package with hints to how it may work with say pusher or socket.io , leave the rest to us

You must be logged in to vote
0 replies
Comment options

Thanks for the nice package, works fine.

But I got an error when I make a migration:refresh after a time: Class "AddSoftdeletesToThreadTable" not found. The migration file with it class is in the migration folder. Don't know what I'm doing wrong

You must be logged in to vote
0 replies
Comment options

@Pandahisham just check this repo. It's pretty good boilerplate to make this package work with Pusherhttps://github.com/cmgmyr/laravel-messenger-pusher-demo

You must be logged in to vote
0 replies
Comment options

@a-komarev and@cmgmyr thanks !! i may have to re-purpose that to socket.io though

You must be logged in to vote
0 replies
Comment options

How can I run this in my project , I have no idea... .. I followed all the instructions but its not working :( I am using laravel 4.2 version ...anyone here to help me please!!

You must be logged in to vote
0 replies
Comment options

cmgmyr
Dec 6, 2015
Maintainer Author

@talha08 if you have a specific thing you need help with, please create a new issue ticket with more information. This isn't the correct issue for help. With Laravel 4, you should be using the1.x version. I hope that helps.

You must be logged in to vote
0 replies
Comment options

@cmgmyr Using it as a personal messaging system with the phphub china community forum.
you could check it out here.Phphub++

You must be logged in to vote
0 replies
Comment options

In a Game-Webinterface for an Arma3 Altis Life Server.

AS additional features I've added Markdown and a PHP side Twemoji Class that replaces some codes with the SVGs for the twemojis.

For me this is a very good package cause it just comes with the needed things and is easy customizable.

You must be logged in to vote
0 replies
Comment options

I'm not using it yet, but I'm planning on using it to support messaging between the website admins and the users... it seems very well suited for that

You must be logged in to vote
0 replies
Comment options

Great package just created a demo app with Laravel 5.2

https://github.com/sger/laravel-messenger-demo

You must be logged in to vote
0 replies
Comment options

Thank you for creating this package. Although I have created similar PM systems in plain-php, I didn't want to re-invent the wheel this time. Took some hours of modifying and this is the result. It's an implementation for my bachelor's thesis project. ;)
My example

You must be logged in to vote
0 replies
Comment options

I use Laravel. I combine the laravel-messenger with email notification with Mailgun and Amazon SES. Working very very good. User can also send message directly to Admin without knowing who the Admin is (with admin role). I also use Summernote rich text editor so laravel-messenger message body could contain image, picture, video link, etc. I have planning to create chat directly from Post model, but still considering it given that comment section is provided. User can also opt to 'GetMeOut' if he/she does not longer want to be included in the thread message (although I assume his/her boss will get angry because the App is intended to be used in a company)
thread_lq
thread_admin
thread_notifemail
thread_unsub

You must be logged in to vote
0 replies
Comment options

cmgmyr
Feb 14, 2019
Maintainer Author

so cool, thanks for sharing!

You must be logged in to vote
0 replies
Comment options

can I use this package with two separate models? "User" and "Manager" ??

You must be logged in to vote
0 replies
Comment options

@Mu9tafa-Online I want that too 👍

You must be logged in to vote
0 replies
Comment options

We're using this package to provide instant messages to our users. Glive connects artists, agencies and contractors. They can meet new contacts and keep in touch with messages. We're developing more advanced messaging features like contract attachments, event planning and more.

This package allows the customization of the message system to our needs. Thank you for this excellent package.

https://glivesol.com
messenger_demo_2

You must be logged in to vote
0 replies
Comment options

Please helps me here, i have a serious problem, use Laravel 5.8 i really need your helps

https://stackoverflow.com/questions/59249412/get-the-users-who-are-sent-themselves-of-the-messages-with-the-last-messages-and

You must be logged in to vote
0 replies
Comment options

cmgmyr
Dec 9, 2019
Maintainer Author

@alkaou this thread is not for asking for help. Please add anew, detailed, issue in the repo or wait for someone to respond on stack overflow.

You must be logged in to vote
0 replies
Comment options

Actually started using this package along with an expanded version of this package (https://github.com/lexxyungcarter/laravel-5-messenger) as a base in April 2018, but ended up extracting out your SRC files, using the models as a base reference, and building back up from scratch. We needed to be able to message between any models we choose, so switched to using morphs on everything. Ended up building so much on top, I am starting to extract it out into a standalone package I too would like to release as an entire suite! But your base helped us get the jump start we needed, so thanks! I added support for group invite links like discord, video calling/group calling, bobble heads (read indicators), images, documents, links, youtube support. Privacy and friends list are also integrated

71425952-e5187780-2670-11ea-8390-583970b6ba82

71425992-5821ee00-2671-11ea-94a5-488215856885

You must be logged in to vote
0 replies
Comment options

thanks for an awesome package....
Dashboard_BinaKarir

You must be logged in to vote
0 replies
Comment options

thanks for an awesome package....
Dashboard_BinaKarir

Hello I know its bit late to ask a question. But I would like to know how to show the conversations in timeline mode like you are doing?
I am using $thread->messages to display all the messages between two users. But I want to display the message from the sender like you are doing in blue and the receiver of the message in white. I want to implement the conversation view like you are doing. How to achieve it? Kindly help.

You must be logged in to vote
0 replies
Comment options

Hello. I am rebuilding my website and looked a package for messages between users. Your package looks nice but i added two changes.

Firstly. In Thread model i added new scope:

    /**     * Returns threads that the user is associated with and sorts start from unreads.     *     * @param \Illuminate\Database\Eloquent\Builder $query     * @param int $userId     *     * @return \Illuminate\Database\Eloquent\Builder     */    public function scopeForUserOrderByNotReadMessages(Builder $query, $userId)    {        $participantTable = Models::table('participants');        $threadsTable = Models::table('threads');        $orderBy = 'IF(`' . $participantTable . '`.last_read IS NULL, 2, IF (`' . $threadsTable . '`.updated_at>`' . $this->getConnection()->raw($this->getConnection()->getTablePrefix() . $participantTable) . '`.last_read, 2, 0)) DESC';        return $query->join($participantTable, $this->getQualifiedKeyName(), '=', $participantTable . '.thread_id')                ->where($participantTable . '.user_id', $userId)                ->whereNull($participantTable . '.deleted_at')                ->orderByRaw($orderBy)                ->select($threadsTable . '.*');    }

Secondly. I modified getParticipantFromUser method.

    public function getParticipantFromUser($userId)    {        if ($this->relationLoaded('participants')) {            $participant = $this->participants->where('user_id', $userId)->first();            if (is_null($participant)) {                throw new ModelNotFoundException();            }            return $participant;        }        return $this->participants()->where('user_id', $userId)->firstOrFail();    }

And i used this:

Thread::forUserOrderByNotReadMessages($userID)->with(['participants' => function ($query) use ($userID) {        $query->where('user_id', $userID);    }])->latest('updated_at')->paginate(50);

These changes reduce the number of queries and the page loads faster :)

You must be logged in to vote
0 replies
Comment options

I'm studying laravel and I've decided to rebuild an application using it.
One of the new features will be users chat and your package was just what I needed.
Made some adjustments to star and archive messages and thats it!
Thanks a lot for the great work!
Here is how it looks...

chat-demo

You must be logged in to vote
0 replies
Comment options

Hello every bady
88055316-2a345780-cb35-11ea-8f20-664ab2f2f87e
Mana natija

You must be logged in to vote
0 replies
Comment options

Using this project to power messaging on our platform.
simulator_screenshot_7272839B-FDA6-4E30-B920-FA228BBB9ADF

It works great.

You must be logged in to vote
1 reply
@hetmann
Comment options

@prog-24 native app or cross-platform?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
44 participants
@cmgmyr@ghost@sger@simonj@bgies@antonkomarev@yansusanto@reliq@prog-24@mydnic@mrgwilliam@hetmann@cihadturhan@RTippin@nuukcillo@naumanahmed19@mustafa-online@BrunoBasstos@xuan9230@Gummibeer@Moussa112and others
Converted from issue

This discussion was converted from issue #55 on November 19, 2021 17:00.


[8]ページ先頭

©2009-2025 Movatter.jp