You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like doing something like this in our AppServiceProvider for Fieldsets:
$this->app->singleton(\Statamic\Fields\FieldsetRepository::class, function () {
return (new \Statamic\Fields\FieldsetRepository)
// define the path here
->setDirectory(resource_path('fieldsets'));
});
or this for Blueprints:
$this->app->bind(\Statamic\Fields\BlueprintRepository::class, function () {
return (new \Statamic\Fields\BlueprintRepository)
->setDirectory(resource_path('blueprints'))
->setFallback('default', function () {
return \Statamic\Facades\Blueprint::makeFromFields([
'content' => ['type' => 'markdown', 'localizable' => true],
]);
});
});
Like doing something like this in our
AppServiceProvider
for Fieldsets:or this for Blueprints:
Took statamic/cms#8344 for reference.
The text was updated successfully, but these errors were encountered: