I\'m trying to run the migration (see below) and seed the database, but when I run
php artisan migrate --seed
I get this error:
<
DB::statement('SET FOREIGN_KEY_CHECKS=0;'); App\User::truncate(); DB::statement('SET FOREIGN_KEY_CHECKS=1;');
And it works!