{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/lumen-framework/issues/252","labels_url":"https://api.github.com/repos/laravel/lumen-framework/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/laravel/lumen-framework/issues/252/comments","events_url":"https://api.github.com/repos/laravel/lumen-framework/issues/252/events","html_url":"https://github.com/laravel/lumen-framework/issues/252","id":108236724,"number":252,"title":"Truncate table, what is Builder?","user":{"login":"pharsadi","id":6156448,"avatar_url":"https://avatars.githubusercontent.com/u/6156448?v=3","gravatar_id":"","url":"https://api.github.com/users/pharsadi","html_url":"https://github.com/pharsadi","followers_url":"https://api.github.com/users/pharsadi/followers","following_url":"https://api.github.com/users/pharsadi/following{/other_user}","gists_url":"https://api.github.com/users/pharsadi/gists{/gist_id}","starred_url":"https://api.github.com/users/pharsadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pharsadi/subscriptions","organizations_url":"https://api.github.com/users/pharsadi/orgs","repos_url":"https://api.github.com/users/pharsadi/repos","events_url":"https://api.github.com/users/pharsadi/events{/privacy}","received_events_url":"https://api.github.com/users/pharsadi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-24T23:54:08Z","updated_at":"2015-09-25T08:27:05Z","closed_at":null,"body":"I know I can truncate the table via\r\n\r\n```php\r\nDB::statement('TRUCATE my_table');\r\n```\r\n\r\nBut, I can see in Builder.php that there is a truncate method, it's just not apparent on how to consume it via your model.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/lumen-framework/issues/comments/143159386","html_url":"https://github.com/laravel/lumen-framework/issues/252#issuecomment-143159386","issue_url":"https://api.github.com/repos/laravel/lumen-framework/issues/252","id":143159386,"user":{"login":"lukasgeiter","id":5907946,"avatar_url":"https://avatars.githubusercontent.com/u/5907946?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasgeiter","html_url":"https://github.com/lukasgeiter","followers_url":"https://api.github.com/users/lukasgeiter/followers","following_url":"https://api.github.com/users/lukasgeiter/following{/other_user}","gists_url":"https://api.github.com/users/lukasgeiter/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasgeiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasgeiter/subscriptions","organizations_url":"https://api.github.com/users/lukasgeiter/orgs","repos_url":"https://api.github.com/users/lukasgeiter/repos","events_url":"https://api.github.com/users/lukasgeiter/events{/privacy}","received_events_url":"https://api.github.com/users/lukasgeiter/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T08:27:05Z","updated_at":"2015-09-25T08:27:05Z","body":"Should be as simple as:\r\n\r\n`DB::table('my_table')->truncate()`\r\n\r\nor even:\r\n\r\n`Model::truncate()`"}}