Create Workspace With Demo Data

When Dev mode is enabled, you will find a new button called Create Demo Workspace. By clicking on this Button, it will create a Demo workspace with the Settings available in /system/config/demo_settings.php

Rename the file demo_settings.sample.php to demo_settings.php if it's not already renamed.

If you want to create a new Settings for your Country, create a new key with your country short name and set the default_country to your newly created country name. 

For example, here is the sample data for USA.

'us' => [
            'company_name' => 'The Acme Inc.',
            'admin_full_name' => 'Richard Williams',
            'faker_locale' => '',
            'currency' => 'USD',
            'customer' => [
                'name' => 'Maria Elizabeth',
                'address' => '28th Floor, 1325 6th Avenue',
                'city' => 'New York',
                'state' => 'NY',
                'zip' => '10019',
                'country' => 'United States',
                'lat' => '40.762901',
                'lon' => '-73.980733',
            ],
            'banks' => [
                [
                    'name' => 'JPMorgan Chase & Co.'
                ],
                [
                    'name' => 'HSBC'
                ],
                [
                    'name' => 'Standard Chartered'
                ]
                ,
                [
                    'name' => 'Cash'
                ]
                ,
                [
                    'name' => 'City Bank'
                ],
            ],
            'incomes' => [
                [

                    'description' => 'Sales',
                    'amount' => 5400

                ],
                [
                    'description' => 'Other Income',
                    'amount' => 1800
                ],
                [
                    'description' => 'Software Development',
                    'amount' => 2500
                ],
                [
                    'description' => 'Web Development',
                    'amount' => 1500
                ],
                [
                    'description' => 'Consultancy',
                    'amount' => 4000
                ],
                [
                    'description' => 'Interest',
                    'amount' => 700
                ]
            ],
        ],

Then let's say, we want to create another profile for Poland-

'pl' => [
            'company_name' => 'Acme S.A.',
            'admin_full_name' => 'Przemysław W',
            'faker_locale' => 'pl_PL',
            'currency' => 'PLN',
            'customer' => [
                'name' => 'Aleksandra Pukianiec',
                'address' => 'Przemyslowa',
                'city' => 'Krakow',
                'state' => 'Krakow',
                'zip' => '30-701',
                'country' => 'Poland',
                'lat' => '50.04691015',
                'lon' => '19.99706376',
            ],
            'banks' => [
                [
                    'name' => 'Bank Pekao'
                ],
                [
                    'name' => 'BZ WBK'
                ],
                [
                    'name' => 'mBank'
                ]
                ,
                [
                    'name' => 'Cash'
                ]
                ,
                [
                    'name' => 'BGZ BNP Paribas'
                ],
            ],

            'incomes' => [
                [

                    'description' => 'Sales',
                    'amount' => 5400

                ],
                [
                    'description' => 'Other Income',
                    'amount' => 1800
                ],
                [
                    'description' => 'Software Development',
                    'amount' => 2500
                ],
                [
                    'description' => 'Web Development',
                    'amount' => 1500
                ],
                [
                    'description' => 'Consultancy',
                    'amount' => 4000
                ],
                [
                    'description' => 'Interest',
                    'amount' => 700
                ]
            ],
        ],

Now set the default country to pl- 'default_country' => 'us',

By continuing to use this site you consent to the use of cookies in accordance with our Cookie policy. close notification