Deepdives

Laravel Configurations

Overview

Laravel configurations, crucial settings stored in files like app.php and database.php within the config directory, are pivotal in defining the behavior of Laravel applications. They empower developers to customize the application's functionality, supporting environment-specific configurations for seamless adaptation across different stages, such as development and production. Accessible through the config helper, these settings offer a centralized and flexible approach for developers to fine-tune their applications according to specific needs.

Regional Web Configurations

For regional specificity in web configurations, files are situated at project > config > toolstation > TS{Region} > web.php. Within this structure, diverse configurations are encapsulated to cater to the unique requirements of each region on the web. This includes settings related to filters, parts, and footers, allowing developers to tailor the web application's features and appearance to align with regional preferences.

Config Variables

  • algolia

This variable contains the Algolia application ID and secret, which are used to access the Algolia API. The Algolia API is used to retrieve data from the Algolia index, which is used to populate the search results page.

VariableDescription
stagingsStaging environment settings
app_idAlgolia application ID
app_secretAlgolia application secret
filterOrderList of filters in order of appearance
numericSortingList of numeric filters
  • part
VariableDescription
attrtypesArray of attribute id which are to be displayed in the product technical specifications

Copyright © 2026