DEV Community

Discussion on: ¿Cómo truncar tus datos de prueba en Laravel 5.7?

Collapse
 
andres_gcarmona profile image
Andy Carmona • Edited

There is a DB::truncate() function you can use instead delete(), so if you are using MySQL the auto_increment counters resets to 0.