roots / docs

đź“ť Documentation for Roots projects
https://roots.io/docs/
168 stars 183 forks source link

Fix issue with Composer name in documentation #501

Closed spichkaJohn closed 4 months ago

spichkaJohn commented 6 months ago

Fixed issue in documentation: composer doesn't need to have Composer in its name

retlehs commented 6 months ago

Thanks for the PR! While Composer isn’t required for the name, it shows the proper SnakeCase to use when creating one

spichkaJohn commented 6 months ago

Thanks for the PR! While Composer isn’t required for the name, it shows the proper SnakeCase to use when creating one

Yes, it is described in the documentation, but the example with the "Composer" in the name is misleading.

If you try to do exactly as described in the code example, variable will be undefined always.

image

Because view must have resources/views/partials/example-composer.blade.php name in this case.

For example, documentation for components is correct: https://roots.io/sage/docs/components/