{"action":"created","issue":{"url":"https://api.github.com/repos/laracasts/TestDummy/issues/81","labels_url":"https://api.github.com/repos/laracasts/TestDummy/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/laracasts/TestDummy/issues/81/comments","events_url":"https://api.github.com/repos/laracasts/TestDummy/issues/81/events","html_url":"https://github.com/laracasts/TestDummy/issues/81","id":60970178,"number":81,"title":"Call to undefined method Closure::format()","user":{"login":"mikeritter","id":5655656,"avatar_url":"https://avatars.githubusercontent.com/u/5655656?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeritter","html_url":"https://github.com/mikeritter","followers_url":"https://api.github.com/users/mikeritter/followers","following_url":"https://api.github.com/users/mikeritter/following{/other_user}","gists_url":"https://api.github.com/users/mikeritter/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeritter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeritter/subscriptions","organizations_url":"https://api.github.com/users/mikeritter/orgs","repos_url":"https://api.github.com/users/mikeritter/repos","events_url":"https://api.github.com/users/mikeritter/events{/privacy}","received_events_url":"https://api.github.com/users/mikeritter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-13T03:08:16Z","updated_at":"2015-03-15T11:50:12Z","closed_at":null,"body":"`'date'\t\t=> $faker->dateTimeBetween('-1 days','+1 months')->format('Y-m-d')`\r\n\r\nthrows\r\n\r\n`Call to undefined method Closure::format()`"},"comment":{"url":"https://api.github.com/repos/laracasts/TestDummy/issues/comments/80982803","html_url":"https://github.com/laracasts/TestDummy/issues/81#issuecomment-80982803","issue_url":"https://api.github.com/repos/laracasts/TestDummy/issues/81","id":80982803,"user":{"login":"gbrock","id":4151394,"avatar_url":"https://avatars.githubusercontent.com/u/4151394?v=3","gravatar_id":"","url":"https://api.github.com/users/gbrock","html_url":"https://github.com/gbrock","followers_url":"https://api.github.com/users/gbrock/followers","following_url":"https://api.github.com/users/gbrock/following{/other_user}","gists_url":"https://api.github.com/users/gbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/gbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbrock/subscriptions","organizations_url":"https://api.github.com/users/gbrock/orgs","repos_url":"https://api.github.com/users/gbrock/repos","events_url":"https://api.github.com/users/gbrock/events{/privacy}","received_events_url":"https://api.github.com/users/gbrock/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T11:50:12Z","updated_at":"2015-03-15T11:50:12Z","body":"I ran into this too.  The problem lies in the fact that the way you're declaring the variable TestDummy uses to generate is not the data itself, but rather a quick means to tell TestDummy how it should generate the data.\r\n\r\nIn order to manipulate each date directly, you need to use a closure.  From the docs (example modified):\r\n\r\n> Alternatively, you may pass a closure as the second argument to the $factory method. This can be useful for situations where you need a bit more control over the values that you assign to each attribute. Here's an example:\r\n\r\n```php\r\n$factory('App\\MyModel', function($faker, $overrides) {\r\n    $date = $faker->dateTimeBetween('-1 days','+1 months')->format('Y-m-d');\r\n\r\n    return [\r\n        'date' => $date\r\n    ];\r\n});\r\n```"}}