octobercms/october — pull request #811 by nicolas-lescop (2014-12-02 13:49:29+00:00)
Title: Define the list of options by yourself

For example if you want to exclude an element from list

public function scopeExtendQueryFilterOptions($query)
{
return $query->where('status', '<>', 'all');
}

If you want to fetch the filtered elements by anything but id

public function scopeExtendQueryFilterOptions($query)
{
return $query->select('status as id');
}