corcel-acf
corcel-acf copied to clipboard
Usage outside of laravel
from https://github.com/corcel/acf/issues/74#issuecomment-594280671
@tbruckmaier would be great if this could work without Laravel (first issue i hit was with config() function)
I'm actually testing out Corcel within just Wordpress itself, to use the Models for Custom Post Types etc, so I'm not using the Laravel side of it at all
I found your version because this corcel/acf version currently doesn't support Group fields
I'm having to use the older version though because of other dependencies
"jgrossi/corcel": "2.8",
"corcel/acf": "^1.1.1",
"tbruckmaier/corcel-acf": "^1.3"
@codemonkeynorth Maybe just the single config() call in Tbruckmaier\Corcelacf\Models\BaseField::mapTypeToClass() is the issue in your case? Could you try to replace it with the array in src/config.php and see if it works? If it does, we can certainly find a solution to implement that properly.
And the dependency issues are tracked in #6