Support the ongoing development of Laravel.io →
Configuration Packages Architecture
Last updated 2 years ago.
0

First plaease use markup on the code.

You can create a new folder into the app folder & save that file inside the folder you created. On your composer.json add the folder under autoload section e.g.

"autoload": {
        "classmap": [
            "app/NewFolder"
        ]

Then on your terminal / console / cli run the command php artisan dump-autoload You can now instantiate your class to any controller class. :P

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Flash-back flash-back Joined 16 Jul 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.