you need to add it to composer.json. and than do a composer dump. You can use every folder you create in app. I used Base and created different parts with namespaces inside it.
You can create a custom folder within the app
folder for all your own business logic. Maybe call it "MyApp" or a nickname for your application. You can use psr-4 to load anything within it inside composer.json
"autoload": {
"psr-4": {
"MyApp\\": "app/MyApp"
}
},
Then you don't need to add anything to start.php, or global.php keeping them clean
Thanks for the tips. I'll give them a shot!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community