Adding Modules (Controllers, Repositories) in Subfolders

Hi, I’m trying to add my custom modules (e.g., controllers, repositories) inside subfolders. However, I’m encountering an issue where Twill doesn't seem to recognize my controller in the subfolder. I get the error: Target class [App\Http\Controllers\Twill\NewController] does not exist. How can I make Twill recognize my controller in the subfolder [App\Http\Controllers\Twill\News\NewController] ? Where should I configure the mapping for this? Thanks in advance!
2 Replies
Amira
AmiraOP2mo ago
@AREA 17 @admins
ifox
ifox2mo ago
Why are you pinging these?! Please don't do this. Please read the #✅rules. You would need to register the route manually to achieve this, most likely.
Want results from more Discord servers?
Add your server