👈 Go back to the list

For developers

Improvements and changes to the code

All component and controller logic is located in the folder core, When adding new features or modifying existing ones, it is necessary to do so in the folder core

After any changes in the folder core You need to run a command to reassemble the files. To do this, log in to the admin panel and have the super admin role. Then, run the following command in the URL:https://site.com/alias-dashboard/compile-core. After execution, the files will be collected in the folder app/Components, app/Http/Controllers, app/Systems/User.php, app/Systems/Ui.php, app/Systems/System.php, app/Systems/Notify.php, app/Systems/Event.php, app/Systems/Api.php.

Attention!

Do not make changes to the files in the app/Components, app/Http/Controllers, app/Systems/User.php, app/Systems/Ui.php, app/Systems/System.php, app/Systems/Notify.php, app/Systems/Event.php, and app/Systems/Api.php folders. You may lose these files during future system updates.

Why are the functions in the core folder?

This logic is designed for updates, so that we don't have to replace entire component and controller files during updates, but can do it selectively to ensure that your functions or changes are not overwritten. However, if there were changes in the file that was updated, it will be overwritten. We recommend always making copies of your files before updating, so that you can restore your modifications later.

Changes to the website template

You can freely make various changes to the website template, as the template is not overwritten when you update it, and if necessary, the template files and js files are updated pointwise, and the CSS styles are also not updated.

System structure

The system consists of 7 main folders:

  • app - Folder contains: add-ons, components, controllers, models, and system files
  • config - Folder contains various configuration files: database connections, phone codes, time zones, and various system settings
  • core - Folder contains component and controller function files
  • resources - The folder contains files of emails, admin panel and site
  • routes - The folder contains all routes of the system
  • storage - The folder contains images, files, temporary files uploaded to the site, cache, images of goods and users
  • vendor - The folder contains various dependencies of modules and packages

The contents of the App folder

  • Addons - The folder contains modules for: payment systems, SMS services, authorization services, messengers, delivery services, card providers, and SMTP services.
  • Components - The folder contains files responsible for the system's functionality, and these files and functions are collected from the core folder.
  • Http - The folder contains controllers. Controllers are responsible for displaying content, and they are closely related to the routes in the routes folder.
  • Models - This folder contains the models of all the tables in the database. Models are used to create queries for specific tables.
  • Services - This folder contains system dependencies.
  • Systems - This folder contains various system files.