How can I generate a database query from the migrations in Laravel without establishing a connection with the database?

Or how can you create a pseudo-connection so that requests are generated without requiring a connection?

  • judging by the docks: artisan migrate --pretend - etki
  • Initially I tried it, but the pretend still requires a connection to the database, it simply does not send a request, it’s necessary that the request be generated even without any available database. - Sergey
  • write to them issue in the tracker, so it should not be. As a temporary solution, you can raise the docker-container or vpsku with the database for five minutes - etki
  • Can you please more in detail how to do this? - Sergey
  • Install the docker and run docker run -p 3306:3306 mysql or go to the nearest WPS hosting and rent the server there for an hour, install the same mysql on it and connect. - etki

0