title: laravel model static method. it is ok?
body: <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Task extends Model
  {
  
      protected $dates = ['due_date'];
      protected $fillable = ['name', 'project_id'];    
  
      public function scopeDueInDays($query,$days)
      {
          return $query-&gt;where('due_date', '&gt;', \Carbon\Carbon::now()
          -&gt;subDays($days));
      }
      static public function dueInDays($days)
      {
          return Task::where('due_date', '&gt;', \Carbon\Carbon::now()
          -&gt;subDays($days));
      }
  }
  </code></pre>
  
  <p>I want to go to method definition on vscode editor.
  I can't this with scopeMethod.</p>
  
  <p>Then i create static method. it works. at least until now, fine.</p>
  
  <p>can use static method like below</p>
  
  <pre><code> $task = new Task;
   $tasks = $task-&gt;dueInDays($day)-&gt;get();
   $tasks = Task::dueInDays($day)-&gt;get();
  </code></pre>
  
  <p>this way is have problem on using laravel?</p>
  
  <p>is anyone to using static method without scopeMethod?</p>