I\'m new to slim framework, and can\'t figure out how to use the autoloader to autoload my classes.
I created a app/models/myclass.php but of course wh
app/models/myclass.php
Add this in composer.json file Where app1 is the name of the folder you want to Autoload.
"autoload": { "psr-4":{ "app1\\": "anything" } }
After doing this run this in cmd (via composer)
composer dump-autoload -o