在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):cmgmyr/laravel-messenger开源软件地址(OpenSource Url):https://github.com/cmgmyr/laravel-messenger开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Laravel MessengerThis package will allow you to add a full user messaging system into your Laravel application. Leave some feedbackHow are you using laravel-messenger? Features
Common uses
Laravel Versions
Installation (Laravel 4.x - no longer actively supported)Installation instructions for Laravel 4 can be found here. Installation (Laravel 5.x)
Or place manually in composer.json:
Run:
Add the service provider to 'providers' => [
Cmgmyr\Messenger\MessengerServiceProvider::class,
],
Publish config:
Update config file to reference your User Model:
Create a (Optional) Define names of database tables in package config file if you don't want to use default ones: 'messages_table' => 'messenger_messages',
'participants_table' => 'messenger_participants',
'threads_table' => 'messenger_threads', Publish migrations:
Migrate your database:
Add the trait to your user model: use Cmgmyr\Messenger\Traits\Messagable;
class User extends Authenticatable {
use Messagable;
} ExamplesExample ProjectsContributingPlease see CONTRIBUTING for details. Security VulnerabilitiesPlease review our security policy on how to report security vulnerabilities. CreditsSpecial ThanksThis package used AndreasHeiberg/laravel-messenger as a starting point. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论