Chatify
v1.0.x
v1.0.x
  • Introduction
  • Installation
  • Configurations
  • Upgrading Guide
  • Change Log
  • Github
Powered by GitBook
On this page
  • 1. Install the package in your Laravel app
  • 2. Pusher Api Settings
  • 3. Publishing Assets
  • 4. Migrations
  • 5. Storage Symlink
  • 6. App config (Only for Laravel <=v5.4)

Was this helpful?

Installation

PreviousIntroductionNextConfigurations

Last updated 3 years ago

Was this helpful?

OR

Follow the steps below :

1. Install the package in your Laravel app

$ composer require munafio/chatify

2. Pusher Api Settings

This package using Pusher Api, so you need to :

  • Create account and modify .env file of your Laravel app with your api credentials.

3. Publishing Assets

Packages' assets to be published : The Important assets:

  • config

  • assets

  • migrations

and the optional assets :

  • views

to publish the assets, do the following command line with changing the tag value .. that means after --tag= write chatify- + asset name as mentioned above. Example :

$ php artisan vendor:publish --tag=chatify-config
  • NOTE: Publishing assets means (e.g. config) that creating a copy of the package's config file into the config folder of your Laravel applications and like so with the other assets (Package's Views, controllers, migrations ...).

4. Migrations

Migrate the new migrations that added by the previous step

$ php artisan migrate

5. Storage Symlink

Create a shortcut or a symlink to the storage folder into the public folder

$ php artisan storage:link

6. App config (Only for Laravel <=v5.4)

For Laravel <=v5.4 that doesn't support package auto-discovery, add the following provider into config/app.php providers array list :

...
/*
* Package Service Providers...
*/
\Chatify\ChatifyServiceProvider::class,
...

and the following alias into into config/app.php aliases:

...
/*
* Class Aliases
*/
'Chatify' => Chatify\Facades\ChatifyMessenger::class,
...
  • After installing the package, you can access the messenger by the default path(route path) which is /chatify, and you can change path name in the config file config/chatify.php as mentioned in the configurations section.

That's it .. Enjoy :)

Quick Note: If you are installing this package in a new project, make sure to install the default user authentication system provided with .

This package used a Pusher client events, and client events must be enabled for the application. You can do this in the Settings tab for your app within the Channels dashboard.

controllers (you need to configure , if published)

Laravel
Read more about Pusher 'Triggering client events'
this
Video Tutorial on YouTube