Skip to content

Instantly share code, notes, and snippets.

@alanpilloud
Last active November 17, 2015 13:18
Show Gist options
  • Save alanpilloud/b8c5025456f31a7146b9 to your computer and use it in GitHub Desktop.
Save alanpilloud/b8c5025456f31a7146b9 to your computer and use it in GitHub Desktop.
<?php
class MyConfig extends Config
{
public function __construct()
{
$faker = Faker\Factory::create('en_GB');
$this->post_type = 'post';
$this->post_title = $faker->name();
$this->post_content = $faker->text();
$this->post_thumbnail = $faker->image(UPLOAD_DIR,1200,900,'city',false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment