0

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.

composer.json

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

folder structure

Hence, if i run php artisan serve, the my-private-package should behave as a laravel application.

Note:

  1. 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.
  2. Is there any way, where i can achieve nearly the same?
  3. 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.
Lalith Kumar
  • 426
  • 1
  • 6
  • 10

0 Answers0