Open xfreakart opened 6 years ago
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?¿
It might be a stupid thing but I don't get it.
on plugin main file:
Class file ( Models/TestUser.php ):
Somewhere else:
Error:
I'm using phpStorm and it gets the namespace. PD: I've ran composer dump-autoload.
any clue?¿