Using LaravelData from within another Package #498
-
Hello! Thanks for your awesome work with this. I was just wondering if there was a recommended approach to using this package from within another package (say the spatie/laravel-package-skeleton). After installing the package An exception is thrown when using a when creating a new Data object. Example
Will produce.
After looking at the Any ideas or suggestions would be much appreciated. <3 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Do you get these errors within your package tests? Or in the application where both packages are included? In the first case, within the orchestral test suite you can boot up additional service providers. Adding LaravelDataServiceProvider here should normally fix the problem. |
Beta Was this translation helpful? Give feedback.
Do you get these errors within your package tests? Or in the application where both packages are included? In the first case, within the orchestral test suite you can boot up additional service providers. Adding LaravelDataServiceProvider here should normally fix the problem.