Installation
OR
Follow the steps below :
1. Install the package in your Laravel app
Quick Note: If you are installing this package in a new project, make sure to install the default user authentication system provided with Laravel.
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.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. Read more about Pusher 'Triggering client events'
3. Publishing Assets
Packages' assets to be published : The Important assets:
config
assets
migrations
and the optional assets :
controllers (you need to configure this, if published)
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 :
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
5. Storage Symlink
Create a shortcut or a symlink to the storage
folder into the public
folder
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 :
and the following alias into into config/app.php
aliases:
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 fileconfig/chatify.php
as mentioned in theconfigurations
section.
That's it .. Enjoy :)
Last updated