Download the PHP package aurawindsurfing/messenger without Composer
On this page you can find all versions of the php package aurawindsurfing/messenger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aurawindsurfing/messenger
More information about aurawindsurfing/messenger
Files in aurawindsurfing/messenger
Package messenger
Short Description Super simple user 1v1 messaging system to be used within Laravel application.
License MIT
Homepage https://github.com/aurawindsurfing/messenger
Informations about the package messenger
Messenger for Laravel
This package allows you to create simple user to user messaging system within your Laravel application. It comes packaged with all the views and even a simple admin panel. It does not have support for group conversations yet as well as it does not support editing of messages. It is simply send and receive messenger.
Features
Easy setup & configuration.
- One to one messaging between users
- Multiple conversations (threads) per user
- Returns all messages associated with the user
- Returns the user's unread message count
- Well documented & IDE Friendly.
- Well tested with maximum code quality.
- Laravel
5.7
to5.8
are supported. - Made with :heart: & :coffee:.
Laravel Versions
Laravel | Messenger |
---|---|
5.7+ | 1.* |
Installation
You can install the package via composer:
Or place manually in composer.json:
Run:
This package apart from standard config and migrations files includes also controller, views, factories and console commands.
To publish all assets run:
Create a users
table if you do not have one already. If you need one, the default Laravel migration will be satisfactory.
Migrate your database:
Edit config:
This package allows you to create fake messages between users so you can construct views more easily. To view fake messages you NEED to be logged in as one of the users otherwise you will receive 404 error. To choose for which users to create messages edit your config file:
Add the trait to your user model:
Usage
Populate your messenger tables with dummy data so you will be able to see some messages displayed. To do this run:
Log in as one of the users designated in the config file in visit:
To see message threads received by first user
To clear all your dummy data run below command in your console. Be careful as this command will delete all data from messages table including real messages if they exist!
Customise
Controller
(Optional) This package uses its own MessagesController which you might choose to overwrite. To do this you need to copy it from
to
Edit your config file and your copied controller to amend controller namesapce:
This controller uses 3 methods, index
, create
, store
feel free to rename them to whatever is necessary in your own application.
Edit your config file and amend method names:
Views:
They will be placed in:
Migrations:
Commands and factories:
Package factories and commands will be available for your laravel app with autoloading. You can copy them to relevant places and overwrite them if needed.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.