Mercurius is a real-time messenger system using Laravel and Vue.js, featuring a complete application that you can easily install with any Laravel project.
Preview
Features
Real-time Messenger
Responsive
Multilingual
Browser notifications
Unique UX, with dark theme
Typing indicator
Remove conversations and messages
Search recipients with auto-complete
Screenshots
Click thumbs to enlarge image
Demo
You can try a demo of Mercurius. Authenticate using any of the following credentials:
Open config/app.php and uncomment the line App\Providers\BroadcastServiceProvider::class,.
3. Laravel Authentication
Skip this step if authentication is already setup, otherwise type:
php artisan make:auth
4. Install Mercurius
composer require launcher/mercurius
5. Configuration (optional)
If you want to change the default configuration, publish the config file, by typing the command:
php artisan vendor:publish --tag=mercurius-config
For editing the config, open /config/mercurius.php and add your own values.
return [
/* |-------------------------------------------------------------------------- | Mercurius Models |-------------------------------------------------------------------------- | | Defines the models used with Mercurius, use it to extend Mercurius and | create your own implementation. | */'models' => [
'user' => App\User::class,
'messages' => Launcher\Mercurius\Models\Message::class,
],
/* |-------------------------------------------------------------------------- | User Table Fields |-------------------------------------------------------------------------- | | You can specify the column names for the user table. The `name` accepts | an array of fields, for building custom names with multiple columns. | */'fields' => [
// 'name' => ['first_name', 'last_name'],'name' => 'name',
'slug' => 'slug',
'avatar' => 'avatar',
],
];
请发表评论