justbetter / statamic-eloquent-driver-globalset-migration-generator
Creates a database migration when a new globalset is created
Installs: 2 694
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 1
Open Issues: 0
Type:package
Requires
This package is auto-updated.
Last update: 2024-11-23 14:30:37 UTC
README
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
composer require justbetter/statamic-eloquent-driver-globalset-migration-generator
License
The MIT License (MIT). Please see License File for more information.