I have an architecture question about my Laravel application. I have the entity post. Then I use the spatie package "spatie/laravel-tags":"^4.3"
. When I want to create a post I send my request against the Laravel interface. The route forwards to the controller. The controller forwards the request body (the form data) to the PostService. The PostService forwards the data to the PostRepository. The repository creates the new post and returns it to the service. Now I want to attach the tags to the post. My question. Do I call the TagService in the PostService? Or should the PostController do that?
vendredi 16 décembre 2022
From where do I call different services (controller or directly in the service)?
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire