Replies: 3 comments 3 replies
-
We don't offer anything special for that, just use Laravel's database classes for that |
Beta Was this translation helpful? Give feedback.
1 reply
-
You may try this, it's fast but be carefull this trasaction can not rollback. DB::statement("truncate table your_table"); |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thank you for your support, what else I was missing. I have now solved it: DB::table($table)->truncate(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
how can I delete the database table completely before import.
Beta Was this translation helpful? Give feedback.
All reactions