I have been struggling to find out a way to reset the auto increment value in Laravel 4 but it seems that this functionality is not embedded in laravel 4 at least for now.
so i
use Illuminate\Support\Facades\DB;
public function refreshDB()
{
$max = DB::table('users')->max('id') + 1;
DB::statement("ALTER TABLE users AUTO_INCREMENT = $max");
}
// Note: This solution is for resetting the auto_increment of the table without truncating the table itself