statamic / eloquent-driver

Provides support for storing your Statamic data in a database, rather than flat files.
https://statamic.dev/tips/storing-content-in-a-database
MIT License
104 stars 71 forks source link

Support mixed repository blueprints #300

Closed ryanmitchell closed 2 weeks ago

ryanmitchell commented 3 weeks ago

This PR adds a config to choose which blueprint namespaces are eloquent driven and which are not. For example, you may want form blueprints in the database but others to be file based.

To use it, specify what namespaces you want to be eloquent driven in the config statamic.eloquent-driver.blueprints.namespaces... it defaults to all, but you can put an array of what you want, eg ['forms','collections'] etc. The namespaces are the folder names you would see inside the blueprints folder when using the stache driver.

Closes https://github.com/statamic/eloquent-driver/issues/204

jasonvarga commented 3 weeks ago

Nah