title: Laravel project UML Class diagram
body: <p>I have been googling around for UML examples for MVC PHP Framework as well as a project UML Diagram to do with a PHP project but unfortunately java and c# examples always come up.</p>
  
  <p>I have a small understanding of UML diagrams but not real example to see hwo it is used. I have a laravel project which I am working on and I want to create a UML class diagram to show the class i am using.</p>
  
  <p>In java and PHP i know one of the ways to know if a class is associate with another is when it is getting instantiated in another class with the key word <strong>new</strong> </p>
  
  <p>what I want to know is in laravel hwo do you know when a model or controller is associate with each other or another. I have asked in one of the community channels and someone told me "it is not really linked" which doesn't answer my question. What I want to know is if i do something like  <code>User::where('username', '=', $username)-&gt;where('active', '=', 0)-&gt;get();</code> in a controller does this mean that the controller is now associated with the User model or the controller is a dependency of the User model? </p>
  
  <p>e.g.</p>
  
  <p><img src="https://i.stack.imgur.com/FwYPQ.png" alt="enter image description here"></p>
  
  <p>What I am confusing about is another a UML class diagram will look like for any laravel or PHP MVC application.</p>
  
  <p>Thanks</p>