-
Notifications
You must be signed in to change notification settings - Fork 563
Faveo Plugin creation guide
Faveo is providing option to create plugins. Before creating plugin you should understand how plugin system is working. Faveo plugin is similar to Laravel packages. The only difference is it doesn’t have composer update option.
In app/Plugins has one ServiceProvider.php that is extend to \Illuminate\Support\ServiceProvider.
Two ways clients can install plugin from admin panel and pasting plugin folder in app/Plugins
Upload plugin zip file; When submit the file a post method has been triggered to Common/SettingsController.php. There, zip file has been extracted to app/Plugins and uploaded plugin’s service provider path (eg: app/Plugins{pluginName}/ServiceProvider) put in into Config/app.php file in providers array.
Paste the plugin folder in app/Plugins and give the service provider path (eg: app/Plugins/{pluginName}ServiceProvider) in config/app.php at providers array. Fetching plugins’ list to admin panel plugin module/page In Common/SettingsController.php has a function getPlugin() will fetch the plugin configurations and return as chumper datatable. It lists all the plugins folders. And giving option to delete and activate/deactivate the plugin
Activate puts the path (eg: app/Plugins/{pluginName}ServiceProvider) in config/app.php in providers array. Deactivate comments the path (eg: app/Plugins/{pluginName}/ServiceProvider) in provider array
Deleting plugin, deletes the plugin folder from app/Plugins, commenting the path (eg: app/Plugins/{pluginName}/ServiceProvider) in config/app.php at providers array and finally deletes the plugin from database.
Faveo database has table called plugin when a new plugin installed or activate, plugin name is inserting with status 1 (active). Creating Plugin
- config.php
- ServiceProvider.php
- routes.php
In config.php you should provide name, description, author, website, version, settings. Settings is url name of the settings route.
Plugin ServiceProvider class should extend to App\Plugins\ServiceProvider and their you can register your plugin and give the boot instruction (eg: publish, migration, view load, translation load etc). Highly recommend to register service provider as plugin folder name.
Eg: In app/Plugins/Social/ServiceProvider.php
Register method is
public function register() {
parent::register(‘Social’);
}
In boot method add
parent::boot(‘Social’);
This is a normal route file, when you register (put path to config/app.php), by default routes also registering. Highly recommend to use your plugin name as prefix to avoid conflicts. Here you can listen to Faveo Events.
Controllers, Request and Model you can create normally and extend to faveos’ corresponding class such as App\Http\Controllers\Controller; App\Http\Requests\Request; and Illuminate\Database\Eloquent\Model; respectively
After completing plugin creation move all files in a folder and compress this folder into “.zip” file.
Note: Name of your plugin folder and zip file should be same.
Did you find it helpful? If not email us on support@faveohelpdesk.com
Installation and Upgrade Guide
- GUI Install Wizard
- Manual Install
- CLI Install
- Server Requirements
- Installation with Apache
- Installation with cPanel
- Cron Job or any Job scheduler
- Faveo Helpdesk Installation on CentOS 7 with Apache on PHP 7.1
- Faveo Helpdesk Installation on CentOS 7 with Nginx on PHP 7.1
- Faveo Helpdesk Installation on Ubuntu 18.04 LTS with Apache on PHP 7.1
- Faveo Helpdesk Installation on Ubuntu 18.04 LTS with Nginx on PHP 7.1
- Faveo Helpdesk Installation on Debian 9 with Nginx on PHP 7.1
- Faveo Helpdesk Installation on Debian 9 with Apache on PHP 7.1
- Migrating Faveo from one server to another
- Configuration of Redis with Faveo
- Install and configure Redis, Supervisor and Worker for Faveo on Ubuntu 16.04
- Install Let’s Encrypt SSL on CentOS 7 Running Apache Web Server
- Install and configure a simple mail server for sending mails using PHP mail function in Faveo on Ubuntu 16.04 server
- Install and configure Redis, Supervisor and Worker for Faveo on Centos 7
- Install and configure a simple mail server for sending mails using PHP mail function in Faveo on Centos 7 server
- Faveo Helpdesk Pro Installation on Windows Server 2012 R2
- Install Active Directory Domain Services in Windows Server 2012 R2
- Install Faveo Helpdesk Community on Centos, Ubuntu or Debian Using Script
- Set up automatic backup for Faveo-Helpdesk
Administrator's Guide
- Faveo File Storage
- Change client side theme color
- How to edit or change the footer in faveo
- How to change agent and admin panel Faveo logo link and logo
- Agents
- Departments
- Team
- Priority
- SLA
- Workflow
- Helptopic
- Default Ticket Settings
- Status
- Rating
- Close Ticket Workflow
- Company Settings
- Social Login
- Language
- Security
- Debugging/Logs
- Ban Emails
- Widgets
Agent's Guide
Email Integration
Release & Upgrade Notes
- General Faveo Upgrade Guide Manual
- General Faveo Upgrade Guide Auto
- Upgrade guide to v1.9.2
- Upgrade guide to v1.9.0
- How to update v1.0.7.9 to v1.0.8.0
- Manual Upgrade from v1.0.7.8 to v1.0.7.9
- Faveo Release notes & upgrade guide for V1.0.7.7
- Faveo Release notes & upgrade guide for V1.0.7.5
- Faveo Release notes & upgrade guide for V1.0.7
Known Issues
- The open_basedir restriction in effect
- 404 Not Found
- 500 Internal Server Error
- Bug after update from 1.0.7.4 to 1.0.7.5 or higher version
- Syntax error, unexpected ‘var’(T_VAR), expecting ‘;’
Contribute & Feedback
- Support the community edition
- Contribution Guide
- Faveo Feedback & Customisation
- Help in language translate
Knowledge Base
Third Party Integration
Plugins
API