You cannot TRUNCATE a table that has FK constraints applied on it (TRUNCATE is not the same as DELETE). To work around this, use either of these solutions. Both present risks of damaging the data integrity. Option 1: Remove constraints Perform TRUNCATE Delete manually the rows that now have references to nowhere Create constraints Option … Continue reading How to truncate a foreign key constrained table in mysql?
in Laravel DB::enableQueryLog(); // then to view the queries… DB::getQueryLog();,
If the unzip command isn’t already installed on your system, then run: sudo apt-get install unzip After installing the unzip utility, if you want to extract to a particular destination folder, you can use: unzip file.zip -d destination_folder