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.
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
composer require justbetter/statamic-eloquent-driver-globalset-migration-generator
The MIT License (MIT). Please see License File for more information.