I am familiar with traditional package development in Laravel.
I want to develop my-private-package
, with Laravel (& other laravel dependencies) in vendor folder. A sample composer.json is of my-private-package
is attached here.
Basically, i want to run my-private-package
as the main-app, and i want laravel in the vendor folder.
Finally, with this setup, I want Laravel's default Console-Kernel, Http-Kernel, Exception-Handler to be working.
I have attached my-private-package
folder structure here
Hence, if i run php artisan serve
, the my-private-package
should behave as a laravel application.
Note:
- I don't want to develop packages in
laravel-app/packages/my-company-name/my-private-package
folder because i want to distribute package itself as an app for the team members to develop. - Is there any way, where i can achieve nearly the same?
- I have tried few approaches, but Laravel throws BindingException of ConsoleKernel, HttpKernel, ExceptionHandler, etc. I tried to manually create the
config/app.php
and kernel files and etc, and load them, but i failed. Any opinion is highly appreciated.