Vigyata.AI
Is this your channel?
GithubGithub00

08 Anonymous component paths

This PR introduces the new `anonymousComponentPath()` method, and it’s the main reason I can register Blade components from any folder in the app. I like it because it removes the old limitation of being tied to the views directory and makes organizing components in domain/package style folders much easier.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +Lets me register anonymous Blade components from any directory
  • +Supports an optional namespace to prevent component name conflicts
  • +Makes custom app structure (domain/packages) cleaner

Cons

  • -If you don’t use a namespace, you can still run into naming conflicts
  • -Requires updating habits if you relied on the older documented method

Featured in this video