We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
11
8.2
No response
When using mysql/mariadb, the "compileForeignKeys" function requires database and table names but this function only sends table name
framework/src/Illuminate/Database/Schema/Builder.php
Line 393 in eac3418
dump((new \Illuminate\Database\Schema\Builder(Schema::getConnection()))->getForeignKeys('users'));
The text was updated successfully, but these errors were encountered:
cc @hafezdivandari
Sorry, something went wrong.
MySqlBuilder class extends Builder:
MySqlBuilder
Builder
framework/src/Illuminate/Database/Schema/MySqlBuilder.php
Lines 101 to 110 in eac3418
Just use Schema::getForeignKeys('users') or Schema::connection('connection_name')->getForeignKeys('users') as documented here: https://laravel.com/docs/11.x/database#inspecting-your-databases
Schema::getForeignKeys('users')
Schema::connection('connection_name')->getForeignKeys('users')
Thanks @hafezdivandari
No branches or pull requests
Laravel Version
11
PHP Version
8.2
Database Driver & Version
No response
Description
When using mysql/mariadb, the "compileForeignKeys" function requires database and table names but this function only sends table name
framework/src/Illuminate/Database/Schema/Builder.php
Line 393 in eac3418
Steps To Reproduce
The text was updated successfully, but these errors were encountered: