title: Laravel model scope function names
body: <p>While creating a scope function with name 'scopeList' in the Model to return a data collection (has select) laravel throws a T_List error. Can I know why?</p>
  
  <p>My code:</p>
  
  <pre><code>namespace project1;
  use Illuminate\Database\Eloquent\Model;
  
  class Lookup extends Model
  {
      protected $fillable = array('type','code','description','listorder');
      public $timestamps = false;
  
      /**
       * List lookup entries for a given type
       *
       * @param $type
       *
       * @return \Illuminate\Support\Collection
       */
      public function scopeEntries($query,$type){
          return $query-&gt;select('code','description')
              -&gt;where('type',$type)-&gt;get();
      }
  }
  </code></pre>
  
  <p>If instead of 'scopeEntries', I want to call it 'scopeList' I encounter an error.</p>