Config Files
With the installation of Shopper you will find new configurations files located inconfig/shopper/. They are PHP files named by area of responsibility.
admin.php is the main file, you can find various options to change the configuration of your Shopper installation.
System
All the basic configurations for using shopper can be found in this file. The management of the locale, the models to use and additional resources (scripts and styles) to the administration.Brand logo
By default, the Shopper logo will be used as the brand logo in the administration panel. To update it you just have to fill in the logo link in your public folderControllers
By default Shopper loads controllers that are defined in this namespace. You can change it if you have a different structure. These controllers are used to extend and add functionalities in the administration. In your config file you have the controllers key that define the controller’s namespace for your extended Controllers:Models
Models used are defined in the models key, if you want to use your own models you can replace them on themodels.php config file.
Additional resources
During your work you may need to add your own style tables or javascript scenarios globally for all the pages, so you need to add them to relevant arrays.Routes
The configuration of the routes allows you to specify a prefix to access your dashboard, the addition of middleware and the configuration file to add more routes to your administration.Prefix
wp-admin for WordPress, and it gives an opportunity to automatically search for old vulnerable versions of software and gain control over it.
There are other reasons but we won’t speak of them in this section. The point is that Shopper allows to change dashboard prefix to every other name, admin or administrator for example.
Middleware
Additional dashboard routes
web.php file will be accessible and loaded in the shopper administration. So that your routes added in the sidebar can have the middleware applied to the dashboard, you must fill in an additional routing file and this will be automatically loaded by Shopper’s internal RouteServiceProvider.
Components
The main features of Laravel Shopper is to handle Livewire components to add new functionnalities to your admin panel. For this purpose you have a component file that lists all Livewire components used within Laravel Shopper. You can for each feature modify the associated or extends component to add functionality or even change the view to fit your own logic. Here is an example of some componentsSettings
Settings are a very important part of an e-commerce site administration. Shopper has understood this very well and has set up a settings file, to allow you to add or modify the default settings of Shopper. In this file you can add parameters or delete those you don’t need to simplify your store or to make it largerMapbox
Shopper uses Mapbox to enter the geographic coordinates (latitude and longitude) of your store so that you can easily tell your customers your location. To activate mapbox you need to go to the API documentation and create an API token. Once this is done you need to add the keyMAPBOX_PUBLIC_TOKEN with the token value to your .env file
Update Configurations
In yourconfig/filesystems.php config file add the following to the disks and links section:
Create New Folders
After adding the 2 entries in the filesystem config file, you must create them and add them to the .gitignore file. In your storage directory create 2 new folders calledavatars and uploads.