i am not sure if this is possible in PHP namespaces. please help me
// folder structure
app
-- ModelsFolder // the models folder
---- ComponentsFolder // some traits
------ Traits::class
---- User::class
---- OtherModel::class
the Classes are only using the app folder as namespace
// User class
<?php
namespace App;
in my controllers i use the class as..
<?php
namespace App\Http\Controllers;
use App\User; // import class
use App\OtherModel;
i wonder if this setup is possible, because it's giving me FatalError
saying the Class 'App\User' not found
.
i'm using psr-4 in my composer project.