LiveHelperChat / livehelperchat_laravel

This is Laravel version of Live Helper Chat. This wraps Live Helper Chat under Laravel framework. So you can write your own modules/extension using Laravel API. This way we can migrate Live Helper Chat over time to Laravel, without rewriting everything from scratch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Live Helper Chat

Version of integration V2

  • Sample URL's which are handled by Laravel, but are using LHC classes
    • https://example.com/site_admin/logged - this routes requires lhfront,default permissions. Modify it for production to avoid printing user details
    • https://example.com/anonymous - this route does not require any permission and does not set any cookie.
    • https://example.com/site_admin/login - this route shows how to redirect to LHC internal URL even if URL route is registered in Laravel.

Now you can use any LHC class within Laravel routes. Where this option was missing in first version.

  • site_admin routes should be defined in routes/admin.php you will find also sample how to require permissions for specific URL.
  • Cookieless routes should be defined in routes/anonymous.php route file.

Install instructions after cloning this repository. Here we just create a symlinks to original live helper chat files.

  • V2 - Video tutorial - pending
  • V1 - There is also a video tutorial how to setup it https://youtu.be/SeYA7Vpy4KU
    • The only different that root directly now follows Laravel practise and is located in public folder. Adjusted shell commands also

This allows two apps to work independently and have independent commit history.

For the most common Live Helper Chat classes read

git clone https://github.com/LiveHelperChat/livehelperchat_laravel.git
cd livehelperchat_laravel/public
git clone https://github.com/LiveHelperChat/livehelperchat.git
ln -s livehelperchat/lhc_web/ezcomponents
ln -s livehelperchat/lhc_web/lib
ln -s livehelperchat/lhc_web/modules
ln -s livehelperchat/lhc_web/pos
ln -s livehelperchat/lhc_web/extension
ln -s livehelperchat/lhc_web/design
ln -s livehelperchat/lhc_web/translations
ln -s livehelperchat/lhc_web/var
ln -s livehelperchat/lhc_web/settings
ln -s livehelperchat/lhc_web/cache
chown apache:apache -R cache/
chown apache:apache -R var/
chown apache:apache settings/
chmod -R 755 cache/

Folder structure at the end should look like

See image

Your have to setup virtual host on your server pointing to livehelperchat_laravel/public same as default laravel installation

You now might need to follow standard Laravel install procedure.

After install don't forget to edit .env file and put database logins.

Now in any extension or core file you should be able to use any Laravel class and vica versa.

Laravel

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

This is Laravel version of Live Helper Chat. This wraps Live Helper Chat under Laravel framework. So you can write your own modules/extension using Laravel API. This way we can migrate Live Helper Chat over time to Laravel, without rewriting everything from scratch.


Languages

Language:PHP 82.6%Language:Blade 16.6%Language:Shell 0.8%