create-sites/imvk

Real-time VK Messages for laravel 5 package
9
Install
composer require create-sites/imvk
Latest Version:0.2.1
PHP:>=5.6.4
License:MIT
Last Updated:Feb 20, 2017
Links: GitHub  ·  Packagist
Maintainer: IvanBohonosiuk

IMVK

Latest Stable Version Total Downloads Latest Unstable Version License

Install

Enter in your console this command:

composer require create-sites/imvk --dev

Next up, the service provider must be registered:

'providers' => [
    ...
    CreateSites\IMVK\IMVKServiceProvider::class,

];

And publish the config file:

php artisan vendor:publish --provider="CreateSites\IMVK\IMVKServiceProvider"

Register on the pusher.com and add this line on your .env file with your configurations:

PUSHER_APP_ID=your_pusher_id
PUSHER_KEY=your_pusher_key
PUSHER_SECRET=your_pusher_secret
PUSHER_CLUSTER=your_pusher_cluster

Run the console command:

php artisan migrate

Add in your resources/assets/js/app.js new component:

Vue.component('chat-messages', require('./components/ChatMessages.vue'));

and in your resources/assets/js/bootstrap.js import pusher package

import Pusher from 'pusher-js';

and install pusher package:

npm install pusher-js --save

after install pusher run command: if laravel 5.3:

gulp

or if laravel 5.4 or later run:

npm run dev

Usage

View all messages:

<a class="button-notifications item" href="{{ route('messages.all') }}">All messages</a>

and add button send message

<a href="{{ route('messages.show', $user->id) }}" class="btn green">Write message</a>

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

399,241,428 4,660

Version History

Version Released PHP License
0.2.1 >=5.6.4 MIT
0.2 >=5.6.4 MIT
0.1.1 >=5.6.4 MIT
0.1 >=5.6.4 MIT