lundi 25 février 2019

How to clear primary key id generator in eloquent/mysql?

In my laravel 5.7 / mysql 5.7 app using eloquent I can clear rows in table using model :

Model::truncate();

But can I to clear primary key id generator, so first row would have value for id=1 ?

Thanks!



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2SX2F1M
via IFTTT

Aucun commentaire:

Enregistrer un commentaire