Import Sample Data


Dummy data is mock data generated at random as a substitute for live data in testing environments. In other words, dummy data acts as a placeholder for live data.

You can add while doing a fresh setup of Project. For that you just create following seeds.


├── BlogTheme ├── Database/ ├── Seeds/ ├── DatabaseTableSeeder.php ├── SampleDataTableSeeder.php ├── json/ ├── content_types.json ├── sample/ ├── menus.json ├── blocks.json ├── blogs.json

menus.json

copy

blocks.json

copy

content_types.json

copy

blogs.json

copy

To run this seed, you have to add some code in SampleDataTableSeeder.php and DatabaseTableSeeder.php file.

DatabaseTableSeeder.php

This seeder file will be called whenever you will activate the module from the backend of the VaahCMS.

copy

SampleDataTableSeeder.php

This seeder file will be called whenever you will click on "Import Sample Data" button of the module.

copy

Now, you just need to reactivate the theme and click on Import Sample Data button by visiting this url:

<project-url>/backend#/vaah/themes/