Why the foreign constraint name have no the prefix specified by 'DB_PREFIX'
? Two programs using the same database would fail, because they have the same constraint name . I try to google it and read in Laravel documentation but I can't get anything about it.
According to the API docs you can give the contraint a custom name
Fluent foreign(string|array $columns, string $name = null)
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