Skip to content
On this page

An image

ray.so

Laravel Model Truncate

Remove all records and reset id incremental column identity.

sh
// To truncate (empty) users table

User::truncate();

Last updated: