Support the ongoing development of Laravel.io →
posted 9 years ago
IOC
Last updated 1 year ago.
0
Solution

It's to do with your namespace. In the vast majority of examples, you'll see the Extension folder (in your case) inside app, but the namespace starts at 'Extension' not 'App'.

Make sure you have added PSR-0 or PSR-4 auto loading to your composer.json file. If you were to retain the Extension namespace, it would look like this:

"autoload": {
    "psr-0": {
        "Extension": "app/"
    }
},

Then you would rename your namespaces in your files to start with Extension, not App.

Good luck!

Last updated 1 year ago.
0

Thanks it works

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

EvansEric evanseric Joined 8 Aug 2014

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.

© 2024 Laravel.io - All rights reserved.