The simplest way would be to create a "lib" directory in your app folder and add the class there, then add "app/lib" to the "classmap" section of your composer.json file. For example:
app/
----commands/
----controllers/
----database/
----lang/
----lib/
--------MyXmlParser.php
----models/
(etc)
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/lib",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community