laravel-shift / blueprint

A code generation tool for Laravel developers.
MIT License
2.91k stars 276 forks source link

Ability to set model connection #680

Closed jasonmccreary closed 8 months ago

jasonmccreary commented 8 months ago

This adds a connection option to the meta section of a model, which will generate a model and any migration with the $connection property set to that value.

For example:

models:
  Example:
    meta:
      connection: readonly
    # ...

Closes #639