Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mohammad-fouladgar/eloquent-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammad-fouladgar committed Sep 5, 2019
2 parents b1ccc24 + b51bc7f commit 56fad42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Support/Foundation/Concrete/FilterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ private function setNamespace(string $filter, Model $model)
{
$config = config('eloquent-builder.namespace', 'App\\EloquentFilters\\');

$this->namespace = $config . class_basename($model) . '\\' . $this->resolveFilterName($filter);
$this->namespace = $config.class_basename($model).'\\'.$this->resolveFilterName($filter);
}

private function resolveFilterName(string $filter): string
{
return Str::studly($filter) . 'Filter';
return Str::studly($filter).'Filter';
}

private function filterBasename(): string
Expand Down
2 changes: 1 addition & 1 deletion tests/EloquentBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function it_can_make_without_filters()
public function it_should_return_not_found_filter_exception()
{
$this->expectException(\Fouladgar\EloquentBuilder\Exceptions\NotFoundFilterException::class);

$this->eloquentBuilder->to(User::class, ['not_exists_filter'=>'any_value']);
}

Expand Down

0 comments on commit 56fad42

Please sign in to comment.