3 months ago

How to handle 2-way sync between JSON and Model's data

Posted 3 months ago by bwrice

I'm looking for guidance in adding the ability to update or create a model through a form, and when you do, it creates or updates an associated JSON file. Then, if I switch DBs, or run "migrate:fresh" I would have the ability to sync the DB content to match the JSON files.

I know ACF (Advanced Custom Fields) for Wordpress does something very similar to allow for version controlling of updating fields, and I'm curious if anyone has done something similar in Laravel and how you went about it.

Please sign in or create an account to participate in this conversation.