Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class not loaded. #48

Open
xfreakart opened this issue Oct 11, 2018 · 0 comments
Open

Class not loaded. #48

xfreakart opened this issue Oct 11, 2018 · 0 comments

Comments

@xfreakart
Copy link

xfreakart commented Oct 11, 2018

It might be a stupid thing but I don't get it.

on plugin main file:

require_once(__DIR__ . '/vendor/autoload.php');

Class file ( Models/TestUser.php ):

namespace App;
class TestUser extends \WeDevs\ORM\Eloquent\Model
[...]

Somewhere else:

use App\TestUser as TestUser;
[...]
 var_dump(TestUser::testFunc());

Error:

Uncaught Error: Class 'App\TestUser' not found in ....

I'm using phpStorm and it gets the namespace.
PD: I've ran composer dump-autoload.

any clue?¿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant