Level 122
You can make a class and put it in any folder you like.
Perhaps create a folder in app called Utility
Create a class in that folder, give it the namespace App\Utility;
use it wherever you need it
1 like
Hi,
I have a job to be done each Sunday, but I want to use some functions of this job when user request it, so I want to create a class but where should I place this class? Should I make a class helper, maybe a service or how? It's not related with a model, the code just take some information and then insert other in database for each user, but user can request to change it if he doesn't like it.
Thanks in advance!
You can make a class and put it in any folder you like.
Perhaps create a folder in app called Utility
Create a class in that folder, give it the namespace App\Utility;
use it wherever you need it
Please or to participate in this conversation.