Packages' assets to be published :
The Important assets:
and the optional assets :
controllers (you need to configure this, if published)
to pusblish the assets, do the following command line with changing the tag value .. that means after --tag= write chatify- + asset name as mentioned above.
$ 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 asstes (Package's Views, controllers, migrations ...).
Migrate the new migrations that added by the previous step
$ php artisan migrate
5. Storage Symlink
Create a shourtcut or a symlink to the storage folder into the public folder
$ php artisan storage:link
6. App config
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...*/
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 messeneger 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 below.
That's it .. Enjoy :)
You can find and modify the default configurations of the package at config/chatify.php file that you published in the step 2 of the installation steps .. and all configurations is documented well to be understood by other developers.
All package’s files is documented to understand the whole code.
This value is the name of the app which is used in the views or elsewhere in the app.