title: Explanation needed for laravel avoid using static access
body: <p>I would like to more in depth knowledge about using static methods . I'm using laravel 5.2 framework for my application.</p>
  
  <p>In my application mostly i have used static functions For example  i have model class name like post and method name is get_post() and its declared as static only if i missed static keyword in laravel it throws error</p>
  
  <pre><code>class Post extends Eloquent(){
  
      public static function get_post(){
          return DB::table('post')-&gt;get();
      }
   }
  </code></pre>
  
  <p>In my controller i will call this above method </p>
  
  <pre><code>Post::get_post()
  </code></pre>
  
  <p>How could i avoid to call this method as static ? as per the <strong>PHPMD 1.4.0 rule</strong></p>
  
  <p>Anyone please explain clearly. </p>