{"action":"created","comment":{"url":"https://api.github.com/repos/Realpage/laravel/pulls/comments/57897831","id":57897831,"diff_hunk":"@@ -0,0 +1,167 @@\n+<?php\n+\n+namespace App\\Console\\Commands;\n+\n+use Illuminate\\Console\\Command;\n+use Illuminate\\Filesystem\\Filesystem;\n+use Symfony\\Component\\Process\\Process;\n+\n+class CleanTemplate extends Command\n+{\n+\n+    /**\n+     * The console command name.\n+     *\n+     * @var string\n+     */\n+    protected $signature = 'clean:template {--f|force}';\n+\n+    /**\n+     * The console command description.\n+     *\n+     * @var string\n+     */\n+    protected $description = 'Cleans the example files out of the project';\n+\n+    /**\n+     * Execute the console command.\n+     *\n+     * @return void\n+     */\n+    public function handle()\n+    {\n+        if ($this->option('force')) {\n+            $dbReset = true;\n+            $migrations = true;\n+            $seeds = true;\n+            $test = true;\n+            $name = 'App';\n+        } else {\n+            $dbReset = $this->confirm('Reset database migrations?', true);\n+            $migrations = $this->confirm(\n+                'Remove example database migration?',\n+                true\n+            );\n+            $seeds = $this->confirm('Remove example database seed?', true);\n+            $test = $this->confirm('Remove example test?', true);\n+            $name = $this->ask('Application namespace?', 'App');\n+        }\n+\n+        if ($dbReset) {\n+            $this->info('Resetting database migrations...');\n+            $dbResetProcess = new Process('docker-compose run --rm fpm php artisan migrate:reset');\n+            $dbResetProcess->run();\n+        }\n+\n+        if ($migrations) {\n+            $migrationFilename = database_path('migrations/2014_10_12_000000_create_users_table.php');\n+            if ($this->deleteFile(\n+                $migrationFilename,\n+                'Example user migration'\n+            )\n+            ) {\n+                $this->info('Removing example user database migration...');\n+            }\n+            $migrationFilename = database_path('migrations/2014_10_12_100000_create_password_resets_table.php');","path":"app/Console/Commands/CleanTemplate.php","position":65,"original_position":65,"commit_id":"f1c8df64e18364122bb5a616889ae6a40d567e18","original_commit_id":"f1c8df64e18364122bb5a616889ae6a40d567e18","user":{"login":"bkuhl","id":524933,"avatar_url":"https://avatars.githubusercontent.com/u/524933?v=3","gravatar_id":"","url":"https://api.github.com/users/bkuhl","html_url":"https://github.com/bkuhl","followers_url":"https://api.github.com/users/bkuhl/followers","following_url":"https://api.github.com/users/bkuhl/following{/other_user}","gists_url":"https://api.github.com/users/bkuhl/gists{/gist_id}","starred_url":"https://api.github.com/users/bkuhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkuhl/subscriptions","organizations_url":"https://api.github.com/users/bkuhl/orgs","repos_url":"https://api.github.com/users/bkuhl/repos","events_url":"https://api.github.com/users/bkuhl/events{/privacy}","received_events_url":"https://api.github.com/users/bkuhl/received_events","type":"User","site_admin":false},"body":"I think I'd be in favor of leaving the user/password migrations there.  This isn't stuff we've added, but stuff shipped with Laravel.  The only migration I think we should remove would be the quotes migration.","created_at":"2016-03-30T14:29:22Z","updated_at":"2016-03-30T14:29:22Z","html_url":"https://github.com/Realpage/laravel/pull/4#discussion_r57897831","pull_request_url":"https://api.github.com/repos/Realpage/laravel/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Realpage/laravel/pulls/comments/57897831"},"html":{"href":"https://github.com/Realpage/laravel/pull/4#discussion_r57897831"},"pull_request":{"href":"https://api.github.com/repos/Realpage/laravel/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Realpage/laravel/pulls/4","id":64506796,"html_url":"https://github.com/Realpage/laravel/pull/4","diff_url":"https://github.com/Realpage/laravel/pull/4.diff","patch_url":"https://github.com/Realpage/laravel/pull/4.patch","issue_url":"https://api.github.com/repos/Realpage/laravel/issues/4","number":4,"state":"open","locked":false,"title":"Clean template artisan command","user":{"login":"millidavids","id":4100184,"avatar_url":"https://avatars.githubusercontent.com/u/4100184?v=3","gravatar_id":"","url":"https://api.github.com/users/millidavids","html_url":"https://github.com/millidavids","followers_url":"https://api.github.com/users/millidavids/followers","following_url":"https://api.github.com/users/millidavids/following{/other_user}","gists_url":"https://api.github.com/users/millidavids/gists{/gist_id}","starred_url":"https://api.github.com/users/millidavids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millidavids/subscriptions","organizations_url":"https://api.github.com/users/millidavids/orgs","repos_url":"https://api.github.com/users/millidavids/repos","events_url":"https://api.github.com/users/millidavids/events{/privacy}","received_events_url":"https://api.github.com/users/millidavids/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-29T17:57:54Z","updated_at":"2016-03-30T14:29:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3e991dba9824cc75126bef6da8dbc6eda25c311","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Realpage/laravel/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Realpage/laravel/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Realpage/laravel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Realpage/laravel/issues/4/comments","statuses_url":"https://api.github.com/repos/Realpage/laravel/statuses/f1c8df64e18364122bb5a616889ae6a40d567e18","head":{"label":"Realpage:clean-template-artisan-command","ref":"clean-template-artisan-command","sha":"f1c8df64e18364122bb5a616889ae6a40d567e18","user":{"login":"Realpage","id":17836198,"avatar_url":"https://avatars.githubusercontent.com/u/17836198?v=3","gravatar_id":"","url":"https://api.github.com/users/Realpage","html_url":"https://github.com/Realpage","followers_url":"https://api.github.com/users/Realpage/followers","following_url":"https://api.github.com/users/Realpage/following{/other_user}","gists_url":"https://api.github.com/users/Realpage/gists{/gist_id}","starred_url":"https://api.github.com/users/Realpage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Realpage/subscriptions","organizations_url":"https://api.github.com/users/Realpage/orgs","repos_url":"https://api.github.com/users/Realpage/repos","events_url":"https://api.github.com/users/Realpage/events{/privacy}","received_events_url":"https://api.github.com/users/Realpage/received_events","type":"Organization","site_admin":false},"repo":{"id":54063061,"name":"laravel","full_name":"Realpage/laravel","owner":{"login":"Realpage","id":17836198,"avatar_url":"https://avatars.githubusercontent.com/u/17836198?v=3","gravatar_id":"","url":"https://api.github.com/users/Realpage","html_url":"https://github.com/Realpage","followers_url":"https://api.github.com/users/Realpage/followers","following_url":"https://api.github.com/users/Realpage/following{/other_user}","gists_url":"https://api.github.com/users/Realpage/gists{/gist_id}","starred_url":"https://api.github.com/users/Realpage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Realpage/subscriptions","organizations_url":"https://api.github.com/users/Realpage/orgs","repos_url":"https://api.github.com/users/Realpage/repos","events_url":"https://api.github.com/users/Realpage/events{/privacy}","received_events_url":"https://api.github.com/users/Realpage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Realpage/laravel","description":"A pre-configured Lumen app to jumpstart development","fork":false,"url":"https://api.github.com/repos/Realpage/laravel","forks_url":"https://api.github.com/repos/Realpage/laravel/forks","keys_url":"https://api.github.com/repos/Realpage/laravel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Realpage/laravel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Realpage/laravel/teams","hooks_url":"https://api.github.com/repos/Realpage/laravel/hooks","issue_events_url":"https://api.github.com/repos/Realpage/laravel/issues/events{/number}","events_url":"https://api.github.com/repos/Realpage/laravel/events","assignees_url":"https://api.github.com/repos/Realpage/laravel/assignees{/user}","branches_url":"https://api.github.com/repos/Realpage/laravel/branches{/branch}","tags_url":"https://api.github.com/repos/Realpage/laravel/tags","blobs_url":"https://api.github.com/repos/Realpage/laravel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Realpage/laravel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Realpage/laravel/git/refs{/sha}","trees_url":"https://api.github.com/repos/Realpage/laravel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Realpage/laravel/statuses/{sha}","languages_url":"https://api.github.com/repos/Realpage/laravel/languages","stargazers_url":"https://api.github.com/repos/Realpage/laravel/stargazers","contributors_url":"https://api.github.com/repos/Realpage/laravel/contributors","subscribers_url":"https://api.github.com/repos/Realpage/laravel/subscribers","subscription_url":"https://api.github.com/repos/Realpage/laravel/subscription","commits_url":"https://api.github.com/repos/Realpage/laravel/commits{/sha}","git_commits_url":"https://api.github.com/repos/Realpage/laravel/git/commits{/sha}","comments_url":"https://api.github.com/repos/Realpage/laravel/comments{/number}","issue_comment_url":"https://api.github.com/repos/Realpage/laravel/issues/comments{/number}","contents_url":"https://api.github.com/repos/Realpage/laravel/contents/{+path}","compare_url":"https://api.github.com/repos/Realpage/laravel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Realpage/laravel/merges","archive_url":"https://api.github.com/repos/Realpage/laravel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Realpage/laravel/downloads","issues_url":"https://api.github.com/repos/Realpage/laravel/issues{/number}","pulls_url":"https://api.github.com/repos/Realpage/laravel/pulls{/number}","milestones_url":"https://api.github.com/repos/Realpage/laravel/milestones{/number}","notifications_url":"https://api.github.com/repos/Realpage/laravel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Realpage/laravel/labels{/name}","releases_url":"https://api.github.com/repos/Realpage/laravel/releases{/id}","deployments_url":"https://api.github.com/repos/Realpage/laravel/deployments","created_at":"2016-03-16T20:10:20Z","updated_at":"2016-03-24T20:09:05Z","pushed_at":"2016-03-30T14:22:45Z","git_url":"git://github.com/Realpage/laravel.git","ssh_url":"git@github.com:Realpage/laravel.git","clone_url":"https://github.com/Realpage/laravel.git","svn_url":"https://github.com/Realpage/laravel","homepage":"","size":100,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Realpage:master","ref":"master","sha":"91c2f9ac80e92b6335d6794f412eb3342e1f20b0","user":{"login":"Realpage","id":17836198,"avatar_url":"https://avatars.githubusercontent.com/u/17836198?v=3","gravatar_id":"","url":"https://api.github.com/users/Realpage","html_url":"https://github.com/Realpage","followers_url":"https://api.github.com/users/Realpage/followers","following_url":"https://api.github.com/users/Realpage/following{/other_user}","gists_url":"https://api.github.com/users/Realpage/gists{/gist_id}","starred_url":"https://api.github.com/users/Realpage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Realpage/subscriptions","organizations_url":"https://api.github.com/users/Realpage/orgs","repos_url":"https://api.github.com/users/Realpage/repos","events_url":"https://api.github.com/users/Realpage/events{/privacy}","received_events_url":"https://api.github.com/users/Realpage/received_events","type":"Organization","site_admin":false},"repo":{"id":54063061,"name":"laravel","full_name":"Realpage/laravel","owner":{"login":"Realpage","id":17836198,"avatar_url":"https://avatars.githubusercontent.com/u/17836198?v=3","gravatar_id":"","url":"https://api.github.com/users/Realpage","html_url":"https://github.com/Realpage","followers_url":"https://api.github.com/users/Realpage/followers","following_url":"https://api.github.com/users/Realpage/following{/other_user}","gists_url":"https://api.github.com/users/Realpage/gists{/gist_id}","starred_url":"https://api.github.com/users/Realpage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Realpage/subscriptions","organizations_url":"https://api.github.com/users/Realpage/orgs","repos_url":"https://api.github.com/users/Realpage/repos","events_url":"https://api.github.com/users/Realpage/events{/privacy}","received_events_url":"https://api.github.com/users/Realpage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Realpage/laravel","description":"A pre-configured Lumen app to jumpstart development","fork":false,"url":"https://api.github.com/repos/Realpage/laravel","forks_url":"https://api.github.com/repos/Realpage/laravel/forks","keys_url":"https://api.github.com/repos/Realpage/laravel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Realpage/laravel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Realpage/laravel/teams","hooks_url":"https://api.github.com/repos/Realpage/laravel/hooks","issue_events_url":"https://api.github.com/repos/Realpage/laravel/issues/events{/number}","events_url":"https://api.github.com/repos/Realpage/laravel/events","assignees_url":"https://api.github.com/repos/Realpage/laravel/assignees{/user}","branches_url":"https://api.github.com/repos/Realpage/laravel/branches{/branch}","tags_url":"https://api.github.com/repos/Realpage/laravel/tags","blobs_url":"https://api.github.com/repos/Realpage/laravel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Realpage/laravel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Realpage/laravel/git/refs{/sha}","trees_url":"https://api.github.com/repos/Realpage/laravel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Realpage/laravel/statuses/{sha}","languages_url":"https://api.github.com/repos/Realpage/laravel/languages","stargazers_url":"https://api.github.com/repos/Realpage/laravel/stargazers","contributors_url":"https://api.github.com/repos/Realpage/laravel/contributors","subscribers_url":"https://api.github.com/repos/Realpage/laravel/subscribers","subscription_url":"https://api.github.com/repos/Realpage/laravel/subscription","commits_url":"https://api.github.com/repos/Realpage/laravel/commits{/sha}","git_commits_url":"https://api.github.com/repos/Realpage/laravel/git/commits{/sha}","comments_url":"https://api.github.com/repos/Realpage/laravel/comments{/number}","issue_comment_url":"https://api.github.com/repos/Realpage/laravel/issues/comments{/number}","contents_url":"https://api.github.com/repos/Realpage/laravel/contents/{+path}","compare_url":"https://api.github.com/repos/Realpage/laravel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Realpage/laravel/merges","archive_url":"https://api.github.com/repos/Realpage/laravel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Realpage/laravel/downloads","issues_url":"https://api.github.com/repos/Realpage/laravel/issues{/number}","pulls_url":"https://api.github.com/repos/Realpage/laravel/pulls{/number}","milestones_url":"https://api.github.com/repos/Realpage/laravel/milestones{/number}","notifications_url":"https://api.github.com/repos/Realpage/laravel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Realpage/laravel/labels{/name}","releases_url":"https://api.github.com/repos/Realpage/laravel/releases{/id}","deployments_url":"https://api.github.com/repos/Realpage/laravel/deployments","created_at":"2016-03-16T20:10:20Z","updated_at":"2016-03-24T20:09:05Z","pushed_at":"2016-03-30T14:22:45Z","git_url":"git://github.com/Realpage/laravel.git","ssh_url":"git@github.com:Realpage/laravel.git","clone_url":"https://github.com/Realpage/laravel.git","svn_url":"https://github.com/Realpage/laravel","homepage":"","size":100,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Realpage/laravel/pulls/4"},"html":{"href":"https://github.com/Realpage/laravel/pull/4"},"issue":{"href":"https://api.github.com/repos/Realpage/laravel/issues/4"},"comments":{"href":"https://api.github.com/repos/Realpage/laravel/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Realpage/laravel/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Realpage/laravel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Realpage/laravel/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Realpage/laravel/statuses/f1c8df64e18364122bb5a616889ae6a40d567e18"}}}}