Replies: 4 comments 1 reply
-
Apolgies for jumping into this but did you find a solution? Seems the only way is to create a component class but it's really not needed in my use case. |
Beta Was this translation helpful? Give feedback.
-
not that I remember.. sorry! |
Beta Was this translation helpful? Give feedback.
-
A bit late but, I think you need to register your component in the //...
use Illuminate\Support\Facades\Blade;
class YourServiceProvider extends PakcageServiceProvider
{
public function bootingPackage()
{
Blade::component('testpkg::components.testcomponent');
}
} For more info, take a look at Jetstream service Provider |
Beta Was this translation helpful? Give feedback.
-
From the package development documentation:
In your service provider, where you define your So let's say, in your package, you have:
Then inside your service provider you have:
Then you will be able use the following in your project:
|
Beta Was this translation helpful? Give feedback.
-
hi, I have troubles loading an anonymous component from a package in the main application
this is my config:
the component file is at
I have tried:
but it does not work..
thanks, cheers
dan
Beta Was this translation helpful? Give feedback.
All reactions