JJK's avatar
Level 1

There is no proper documentation/tutorial on creating a package.

I'm trying to create a microservice that'll work with Lumen and Laravel apps, but there is just NO tutorials nor documentation regarding directory structure, files needed etc.

Does anyone have a proper skeleton I can use?

0 likes
4 replies
JJK's avatar
Level 1

@D9705996 I've read both of these, they don't cover the entire directory structure and the fact that by default your published assets are nested in vendor/name, which means your views have to be renamed to 'vendor.name.view' and so do all the other references.

Ofcourse, a workaround is to replace paths in the service provider - but I had to figure that out on my own.

D9705996's avatar

Did you read the official documentation properly?

https://laravel.com/docs/5.7/packages#views

To register your package's views with Laravel, you need to tell Laravel where the views are located. You may do this using the service provider's loadViewsFrom method.

JJK's avatar
Level 1

@D9705996 I did, but I've also skipped few bits at first - I wasn't re-reading it afterwards, once I had basics set up.

Please or to participate in this conversation.