title: laravel: function in model must return a relationship instance
body: <p>I try to build a path for a model on laravel</p>
  
  <p>I created a function in my model:</p>
  
  <pre><code>public function path()
  {
      return App\Helper\GeneralController::getURL($this);
  }
  </code></pre>
  
  <p>with <code>dd(App\Helper\GeneralController::getURL($this))</code> test I got the right answer. (output is a URL)</p>
  
  <p>but in view with the call: <code>$article-&gt;path</code>  I get this error:</p>
  
  <blockquote>
  <pre><code>App\Article:: path must return a relationship instance.
  </code></pre>
  </blockquote>
  
  <p>What is wrong?</p>