Skip to content

Change case in Blade view filenames to snake#357

Open
laundy wants to merge 1 commit into
Log1x:masterfrom
laundy:blade-view-filename
Open

Change case in Blade view filenames to snake#357
laundy wants to merge 1 commit into
Log1x:masterfrom
laundy:blade-view-filename

Conversation

@laundy
Copy link
Copy Markdown
Contributor

@laundy laundy commented Oct 1, 2025

I've noticed that the generated view names for blocks do not match the slugs. For example, wp acorn acf:block ImageAndTextBlock generates a view image-and-text-block.blade.php (kebab case) but the slug is image_and_text (snake case).

This is one approach to solve this. Or would you rather change the slug in the stub?

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.

1 participant