Making Fixtures Really Awesome with Alice

Buy Access

Fixtures: those little bits of test data you load (and reload) locally so that you can test your site with some real-ish content. Until now, creating fixtures was boring. But with Alice, they're video-game-level exciting. Seriously!

Your Guides

Ryan Weaver Leanna Pelham

Questions? Conversation?

  • 2015-01-21 weaverryan

    Hey there!

    Actually, I don't think this is possible right now - that value is "locked up" in a class from "Alice" that we can't access. You *can* use most of the Faker functions inside your custom formatter/provider by creating your own Faker instance:

    $faker = \Faker\Factory::create('en');

    But current() is the *one* formatter that's different, and we can't get to it. You also can't nest formatters (e.g. <avatar(<current()>)>, which would be kind of cool :).


  • 2015-01-21 xdrew

    Is there any easy way to get access to current() in my custom provider?