Support the ongoing development of Laravel.io →
posted 11 years ago
Packages

Hi all,

I'm developing a Laravel package, which uses some MainController and AuthController. Both of them extends MyBaseController (also in the package). This is the directory structure for controllers:

workbench/developer/package/src/controllers/MyBaseController.php
workbench/developer/package/src/controllers/MainController.php
workbench/developer/package/src/controllers/AuthController.php

All of the controllers have defined namespace:

namespace Developer\Package;

The problem is that I'm getting this error:

Class 'Developer\Package\MyBaseController' not found

Could anybody tell me, what I'm doing wrong or how to fix this?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.