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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community