Support the ongoing development of Laravel.io →
Configuration
Last updated 1 year ago.
0

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.

Last updated 1 year ago.
0

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

Last updated 1 year ago.
0

Thanks for the tips. I'll give them a shot!

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

NLSurfMan nlsurfman Joined 14 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.