Getting Started

First, create a folder inside the apps directory to create a plugin. For example, let's say we want to create a plugin for blog publishing. We will create a folder called "blog" inside the apps directory.

By creating this plugin, you will understand-

  • How to set plugin details and other info
  • How to create initial database tables during plugin installation
  • How to clean up the database during uninstallation
  • How to add navigation items for admins
  • How to add navigation items for customers
  • Plugin routing
  • Showing pages for authenticated users
  • Database ORM
  • File uploading

Inside the apps/blog/ directory, create a file manifest.php. This file will hold all the plugin information-

<?php
return [
    'name' => 'Blog',
    'description' => 'Blog Publishing Tool',
    'url' => 'https://www.cloudonex.com',
    'version' => '1.0.0',
];

Can’t find the answers you’re looking for?

We’re here to help. Chat with us.