I had a monolithic application and now, I want to separate this application into multiple services.
For example, consider the User and the Notification services that two of them will be written with PHP and Laravel framework.
Now I want the Notification service to be responsible for formatting and sending messages. In the previous version, I could handle the notification just with Model and Notifiable
trait easily, but now I don't have access to the User model in the Notification service.
How can I handle the Laravel notification, should I repeat the User model in this domain?
Is there any example to be used?