Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 433 Bytes
<?php
namespace Kyslik\LaravelFilterable;
use Illuminate\Database\Eloquent\Builder;
trait Filterable
{
/**
* @param \Illuminate\Database\Eloquent\Builder $query
* @param \Kyslik\LaravelFilterable\FilterContract $filter
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function scopeFilter(Builder $query, FilterContract $filter)
{
return $filter->apply($query);
}
}
You can’t perform that action at this time.