If you’ve used Laravel before, you might be familiar with the Faker PHP library used in database seeding. It generates fake data and I’d like to use it with Kirby.
However, I’m not 100% how I should set it up. I made a quick Kirby plugin by pulling it in via Composer and requiring the autoloader, so I have access to the
Faker class and methods like
Faker\Factory::create() within Kirby, but I’m not sure where I should be using it.
Where should I actually create these pages? A controller, route, page method? I feel like there’s no place that makes to me to put this code.
Should I be creating virtual pages?
Should I create real pages and persist them in the
It’s like a mix of development and testing at the same time.
Any ideas are welcome. Thanks!