Support the ongoing development of Laravel.io →
Requests Packages

I have a couple of packages that have controllers and routes. For example the route admin/log points to my controller in the package which is in the vendor folder. The package also has a route.php which is included in the provider's boot method.

The reason for all these is that i can just install this package using composer and the controllers will always work with minor configuration. Is this a bad practice ? because if someone who is new to the package will wonder where this controller is being called.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

astroanu astroanu Joined 22 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.