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
I found that the difference between the two lies in that the method in the service provider delays registering the blade components until the BladeCompiler is resolved, but still uses the same blade facade to register the components.
Option two sounds better to me, but I don't quite understand why this would be better.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Currently, I'm busy creating blade components for a package I'm building. Therefore, I need to manually register my blade components.
In de docs I found two ways of doing this:
https://laravel.com/docs/8.x/blade#manually-registering-components
https://laravel.com/docs/8.x/packages#view-components
I found that the difference between the two lies in that the method in the service provider delays registering the blade components until the
BladeCompiler
is resolved, but still uses the same blade facade to register the components.Option two sounds better to me, but I don't quite understand why this would be better.
Could someone maybe clearify this for me?
Beta Was this translation helpful? Give feedback.
All reactions