Created
August 12, 2023 15:57
-
-
Save muhajirinlpu/a77f0f7e0634d954e047c6d61e0d0bdb to your computer and use it in GitHub Desktop.
get foreign keys list from migrations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$doctrineTable = Schema::getConnection() | |
->getDoctrineSchemaManager() | |
->introspectTable('presence_leave_allocations'); | |
$foreignKeys = $doctrineTable->getForeignKeys(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment