Pavinder's avatar

FreshDesk Integration in laravel

Hey Everyone! I want to integrate freshdesk in my laravel app. I found this package : https://github.com/mpclarkson/freshdesk-laravel but seems outdated and also my laravel version is 7.2 it only supports 5. so is there any other way to integrate freshdesk with laravel any help is appreciated.

Thanks in advance

0 likes
5 replies
Pavinder's avatar

Thanks for reply

I would like to have a scheduled task that will synchronize the user in the app into the "Companies" in freshdesk.

CorvS's avatar

@pavinder So basically you want to add and/or update contacts/users so that they belong to a certain company, right? How do you plan to achieve that? How do you associate a user/contact with a company? From Freshdesk's perspective it would be by simply adding a company_id to a contact.

Pavinder's avatar

@corvs Freshdesk uses "Companies" and companies have "Contacts. In my app I have "Clients" and clients have "Users". The schedule task should keep this information in sync between the 2 systems.

CorvS's avatar

@pavinder So you are saying you want to map Clients to Companies and Users to Contants? Don't you think that's going to be confusing? Especially for people using Freshdesk directly? Back to topic tho.

I would like to have a scheduled task that will synchronize the user in the app into the "Companies" in freshdesk.

Maybe it's better to work with model events there. Every time a new user is created, updated or deleted in your app you can synchronize Freshdesk. Same for new companies/clients.

https://laravel.com/docs/8.x/eloquent#events

Please or to participate in this conversation.