Download the PHP package justbetter/statamic-eloquent-driver-globalset-migration-generator without Composer
On this page you can find all versions of the php package justbetter/statamic-eloquent-driver-globalset-migration-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download justbetter/statamic-eloquent-driver-globalset-migration-generator
More information about justbetter/statamic-eloquent-driver-globalset-migration-generator
Files in justbetter/statamic-eloquent-driver-globalset-migration-generator
Package statamic-eloquent-driver-globalset-migration-generator
Short Description Creates a databaase migration when a new globalset is created
License
Informations about the package statamic-eloquent-driver-globalset-migration-generator
Archived
With the release of Statamic 4.16.0 and Eloquent driver 4.4.0 this is no longer needed. We can now set the global sets in the config. This creates a file with settings on creating a global. This will tell Statamic on other environments that this global exists. The data of that global will still be stored in it's own table when set to eloquent.
Statamic Eloquent Driver Globalset Migration Generator
When you're using the Statamic Eloquent Driver creating a new globalset will result in a new entry in the global_sets
table. If you're working with multiple environments like DTAP; that new entry isn't visible on the next environment in the row after committing your changes. This package aims to fix that problem by creating a database migration for it. This way you can commit the migration and the entry will be made when you run php artisan migrate
on deployment. More info: #128
Installation
License
The MIT License (MIT). Please see License File for more information.