Replies: 1 comment 1 reply
-
Hi, I'm also wondering kinda similar question regarding For instance, I have providers:
- MyPackage\MyPackageServiceProvider I can only see it's being loaded when I run /**
* @param \Illuminate\Foundation\Application $app
*/
protected function getPackageProviders($app): array
{
return [
MyPackage\MyPackageServiceProvider::class,
];
} Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I'm trying to figure out how the
workbench
directory works and whether it's related to the skeleton mentioned in the docs. Because of the structure of this folder, I'm assuming it's some barebones Laravel application that I can run to interact with the package I'm building.I have the ServiceProvider of my package defined in
src/ServiceProvider.php,
but it does seem to get registered in the workbench application. I tried registering the provider by adding it to theproviders
key intestbench.yaml
, but it does not seem to work.By the way, I have not yet set up any tests; I just wanted to see if I could load my service provider into the workbench.
Not sure if I'm going about this correctly, and I could use some help.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions