A guide to configuring and customizing your Shopper installation.
With the installation of Shopper you will find new configurations files located at the shopper folder under config folder
system.php file is main for platform, you can find various options to change the configuration of your Shopper installation.
If you cache your configuration files please make sure to run `php artisan config:clear` after you changed something.
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.
<?php 'resources' => [ 'stylesheets' => [ //'css/custom.css', ], 'scripts' => [ //'js/custom.css', ], ],
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.
<?php 'prefix' => env('SHOPPER_DASHBOARD_PREFIX', 'shopper'),
The system installed on the website can be easily defined by the dashboard prefix, for example it is
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,
administrator for example.
<?php 'middleware' => ,
Shopper gives you the ability to add middleware to all of your routes. These middlewares will be applied to all the routes of your administration.
Additional dashboard routes
<?php // Eg.: base_path('routes/shopper.php') 'custom_file' => null,
By default none of your routes in the
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