Structure of the application

FlyMyShop code is organised into two main directories:

  1. core
  2. public


Everything related to teh core application that does not need to be available to the public are located in the ‘core’ folder. Core folder has the following directories

  • app
  • Same as in Laravel except in the presence of the Flymyshop class which sets up the directory structure. It is an extension of Laravel Application class and it simply tells the server where the files are.

    You will able to find all Controllers, Models, Events, Jobs, Policies, Routes etc under this directory.

  • bootstrap
  • Same as in Laravel

  • config
  • Same as in Laravel

  • database
  • database

    Same as in Laravel

  • docker
  • docker

    All the docker related files except the main Dokerfile is placed here.

  • flymyshop
  • Anything that offers modularity to FlyMyShop application is found under this. Please see the section below for details.

  • resources
  • All non-public resources are located here. This includes assets for compiling, admin theme and installation theme.

  • storage
  • Same as in Laravel

  • tests
  • Same as in Laravel


    Under this you will be able to find:


    FlyMyShop containers are essentially classes for holding different types of data associated with the application.

    This includes

  • DataContainer which folders all the raw data for the view
  • HookContainer which has a list of plugins that have registered different hooks with the application. This is used by the application to trigger the right plugin at the right time.
  • Core

    This contains the core of the application.

  • EnablePlugins : Load the plugins on to the application
  • Helpers

    Helper classes for application and plugins.

  • PluginHelper: Helps identify list of plugins already installed
  • Plugins

    All the plugins go under here. Currently few sample plugins come with the application.

  • Sample: To illustrate file structure
  • Test: To show how to insert data into views
  • Test: To show how to process objects from the application. In this example, it shows how the plugin can receive order details during checkout
  • functions.php

    Functions that can be used by plugins and themes


    Allows plugins to register different hooks using the functions


    We store all the stub templates here



    All the themes are stored here


    Any public asset can go here