I am trying to run an autoloader through Composer in Laravel.
I am getting this error while running composer dump-autoload
Class App\Admin located in C:/xampp/htdocs/test/app\Models\Admin.php does not comply with psr-4 autoloading standard. Skipping.
I have checked the capitalisation in filesystem and it looks OK to me.
Composer version is 2.0.14, which is latest.
Composer.json --
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
Folder structure is:
<root_project>
app
Models
Admin.php
.....
config
public
...
app/Models/Admin.php:
namespace App;
use ....
use ....
class Admin extends Authenticatable implements HasMedia
{
......
What can I try next?