for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Goopil\RestFilter\Scopes;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
/**
* Class FilterScope.
*/
class FilterScope extends BaseScope
{
* @param Builder $builder
* @param Model $model
*
* @return Builder
public function apply(Builder $builder, Model $model)
$filter = $this->hasArray($this->request->get(config('queryScope.filter.param', 'filter'), null));
if (count($filter) > 0) {
$builder = $builder->select($filter);
select()
Illuminate\Database\Eloquent\Builder
createSelectWithConstraint()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
}
return $builder;
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.