Version of integration V3 Upgraded to Laravel 12.x version.
- Sample URL's which are handled by Laravel, but are using LHC classes
https://example.com/site_admin/logged- this routes requireslhfront,defaultpermissions. Modify it for production to avoid printing user detailshttps://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.https://example.com/dummy- default laravel welcome screen
Now you can use any LHC class within Laravel routes. Where this option was missing in first version.
site_adminroutes should be defined inroutes/admin.phpyou will find also sample how to require permissions for specific URL.- Cookieless routes should be defined in
routes/anonymous.phproute file.
Install instructions after cloning this repository. Here we just create a symlinks to original live helper chat files.
- V3 - Similar setup as V1
- V2 - Similar setup as V2
- 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
- https://doc.livehelperchat.com/docs/development/orm to work with LHC database most common methods
- https://doc.livehelperchat.com/docs/development/common-classes the most commit LHC classes
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
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 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:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
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. You can also check out Laravel Learn, where you will be guided through building a modern Laravel application.
If you don't feel like reading, Laracasts can help. Laracasts contains thousands of 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.
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 Partners program.
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
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.
The Laravel framework is open-sourced software licensed under the MIT license.
