Skip to content

Conversation

@duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Nov 3, 2025

This pull request adds a default_publish_state config option to resources, allowing you to determine if new models should be drafts or published by default:

'resources' => [
	\App\Models\Post::class => [
	    'name' => 'Posts',
		'published' => true,
		'default_publish_state' => 'draft',
	],
],

This PR also fixes an issue when using revisions, where new models were published, even though they should have been drafts.

@duncanmcclean duncanmcclean merged commit d60a50f into 8.x Nov 4, 2025
35 checks passed
@duncanmcclean duncanmcclean deleted the default-publish-state branch November 4, 2025 09:04
@github-actions
Copy link

github-actions bot commented Nov 4, 2025

Released as part of v8.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants