Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
138 lines (99 sloc) 4.64 KB

Configurations

With the installation of Shopper you will find new configurations files located at config/shopper.php, config/ttwiter.php, config/scout.php, config/currencyConverter.php, config/laravellocalization.php and config/cartalyst.sentinel.php.
And the shopper.php file is main for platform, you can find various options to change the configuration of your Shopper installation.

{% hint style="info" %} If you cache your configuration files please make sure to run php artisan config:clear after you changed something. {% endhint %}

Below we will dive into the configuration file and give a detailed description of each configuration set.

{% hint style="info" %} Laravel Scout It is important to mention that Shopper works with Laravel Scout, by default Algolia is used. Full documentation of Laravel scout here {% endhint %}

Dashboard prefix

<?php

'prefix' => env('DASHBOARD_PREFIX', 'console'),

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, admin or administrator for example.

Currency

<?php

'currency'  => env('CURRENCY_SYMBOL', 'XAF'),

This value of the default currency for your store. It is the default value set in the database shopper_settings table.

Additional resources

<?php

'resources' => [
    'stylesheets' => [
        //'css/custom.css',
    ],
    'scripts'     => [
        //'js/custom.css',
    ],
],

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.

Middlewares

<?php

'middleware' => [
    'public'  => ['public', 'web', 'localizationRedirect'],
    'private' => ['web', 'dashboard', 'localizationRedirect'],
],

You may add or delete middlewares of graphical interface. At the moment there is two types of middlewares: public, that unauthorized user may access to, for example, it may be Login page or Password recovery, and private that may be accessed only by authorized users.

You may add as much new middlewares as you want, as example the middleware for IP whitelist filtration.

Storage

<?php

'storage' => [

    'disk' => ['local'],

    'uploads' => [
        'folder' => 'uploads',
        'path'   => storage_path('app/uploads'),
    ],

    'media' => [
        'folder' => 'media',
        'path'   => storage_path('app/media'),
    ],

],

Shopper provide 2 folders for storage. The uploads folder contain all public and protected files that uploaded by administration forms (products, categories, brands and users images). The second folder media is for the filemanager. You nedd to create this folder in the Media Menu on Shopper admin dashboard.

Social post API

<?php
/*
|--------------------------------------------------------------------------
| Twitter API key
|--------------------------------------------------------------------------
|
*/
'twitter' => [
    'consurmer_key' => env('TWITTER_CONSUMER_KEY', ''),
    'consurmer_secret' => env('TWITTER_CONSUMER_SECRET', ''),
    'access_token' => env('TWITTER_ACCESS_TOKEN', ''),
    'access_token_secret' => env('TWITTER_ACCESS_TOKEN_SECRET', '')
],

/*
|--------------------------------------------------------------------------
| Facebook API key
|--------------------------------------------------------------------------
|
*/
'facebook' => [
    'app_id' => env('FACEBOOK_APP_ID', ''),
    'app_secret' => env('FACEBOOK_APP_SECRET', ''),
    'default_graph_version' => env('FACEBOOK_DEFAULT_GRAPH_VERSION', ''),
    'page_access_token' => env('FACEBOOK_PAGE_ACCESS_TOKEN', '')
],
...

Twitter and Facebook setting is for manage social post on Facebook Page and/or Twitter account.

Others config

Shopper has many other configurations files as we said. Shopper come with

You can’t perform that action at this time.