Trying the following config to load my models from root namespace failed. any alternative?
"autoload": {
"psr-4": {
"\\": "app/Models"
}
},
The following works but I have to run dumpautoload
each time I create a new class.
"classmap": [
"app/Models"
],
Any suggestion?