area17 / twill

Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/cnWk7EFv8R.
https://twillcms.com
Apache License 2.0
3.71k stars 567 forks source link

Make twillTrans exportable so it can be used in config #2563

Closed Tofandel closed 3 months ago

Tofandel commented 5 months ago

Currently if you use twillTrans in a config file and run php artisan config:cache the command will fail because TwillTranslation does not implement the required __set_state method to work in var_export

This PR adds the method so that config:cache can work with twillTrans