Structure of the application
FlyMyShop code is organised into two main directories:
- core
- public
core
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
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.
Same as in Laravel
Same as in Laravel
database
Same as in Laravel
docker
All the docker related files except the main Dokerfile is placed here.
Anything that offers modularity to FlyMyShop application is found under this. Please see the section below for details.
All non-public resources are located here. This includes assets for compiling, admin theme and installation theme.
Same as in Laravel
Same as in Laravel
flymyshop
Under this you will be able to find:
Containers
FlyMyShop containers are essentially classes for holding different types of data associated with the application.
This includes
Core
This contains the core of the application.
Helpers
Helper classes for application and plugins.
Plugins
All the plugins go under here. Currently few sample plugins come with the application.
functions.php
Functions that can be used by plugins and themes
hooks.php
Allows plugins to register different hooks using the functions
stubs
We store all the stub templates here
public
themes
All the themes are stored here
uploads/assets
Any public asset can go here