wdevstudio / laravel-chat-messenger
Laravel chat package
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- php: >=7.0
- illuminate/support: ~5
- pusher/pusher-php-server: >=2.6
This package is not auto-updated.
Last update: 2024-08-09 01:43:10 UTC
README
A Laravel JQuery chat that is just like Facebook chat
Installation
Laravel Messenger supports Laravel 5.3 and higher.
Package
Require via composer
$ composer require wdevstudio/laravel-chat-messenger
In config/app.php
file
'providers' => [ ... wDevStudio\LaravelMessenger\LaravelMessengerServiceProvider::class, ... ]; 'aliases' => [ ... 'Messenger' => wDevStudio\LaravelMessenger\Facades\Messenger::class, ... ];
Laravel Messenger Files
Then, run php artisan vendor:publish --tag=messenger --force
to publish the config file, MessageController and assets.
Laravel Messenger Styles and Scripts
Make sure to add @yield('css-styles')
in your app/master head section and @yield('js-scripts')
to your app/master scripts section, or edit section naming in view/vendor/messenger/messenger.blade.php
JQuery is required for the messenger script.
Laravel Messenger Pusher
Add your pusher keys in config/messenger.php
file.
And voila, you can start conversation with any user by linking to your-domain.com/messenger/t/{userId}
.
Customization
Migrations
To publish and edit messenger migrations, run the publish command with messenger-migrations
tag.
$ php artisan vendor:publish --tag messenger-migrations --force
Views
To publish and edit messenger views, run the publish command with messenger-views
tag.
$ php artisan vendor:publish --tag messenger-views --force
TODO
- emotions.
- upload photos.
- Attach files.
- Show date before every conversation beginning.
- paginate and load threads.
- Laravel Messenger chatbox.
- Unauthenticated chatbox to message customer service.