Awesome
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 requireslhfront
,default
permissions. 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.
Now you can use any LHC class within Laravel routes. Where this option was missing in first version.
site_admin
routes should be defined inroutes/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
- 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
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400"></a></p> <p align="center"> <a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a> </p>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:
- 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.
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
- Vehikl
- Tighten Co.
- Kirschbaum Development Group
- 64 Robots
- Cubet Techno Labs
- Cyber-Duck
- Many
- Webdock, Fast VPS Hosting
- DevSquad
- Curotec
- OP.GG
- CMS Max
- WebReinvent
- Lendio
- Romega Software
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.