Then you should not use any php at all. just run a sql backup like @sinnbeck said and you should be good.
Or use the batabase program of your choice to run it.
So if you have edited your backup file remove all the changes you made.
@tray2 Let me explain to you what am I doing exactly. I'm writing a package that when you fresh your migrations, it takes a backup of your database before fresh command runs, and at the end of the freshing migrations, it restores all the data. So your data is still in the tables.
this is the repository of the package and I committed the last changes. If it's possible for you please check it out and help me with what to do with it.
https://github.com/iamamirsalehi/laravel-save-fresh