Skip to content
Discussion options

You must be logged in to vote

The $connection property does seems to be transmitted to the Illuminate/Database/Schema/Blueprint::build method

i don't know the intended behaviour, but there is no way to transmit that value to the builder currently

the only thing that make it work is to do :

Schema::connection($this->connection)

the laravel doc does not seems to state that it should work that way

https://laravel.com/docs/8.x/migrations#database-connection-table-options

the only use of $connection seems to be for the transaction

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@JohnnyWalkerDigital
Comment options

@lk77
Comment options

Comment options

You must be logged in to vote
1 reply
@Bassadin
Comment options

Answer selected by JohnnyWalkerDigital
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #38777 on September 13, 2021 07:10.