I want to disable foreign key constraint on a relationship because I have a problem after:
php artisan migrate:refresh
How can I solve it?
You can disable foreign key constraints in your migration file.
Schema::disableForeignKeyConstraints();
Ref: Laravel migrations nice way of disabling foreign key checks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With