Skip to content

Commit

Permalink
Merge pull request #192 from jsdecena/master
Browse files Browse the repository at this point in the history
Replace the helper with the static method
  • Loading branch information
nicolaslopezj authored Jun 6, 2019
2 parents 2ca83d1 + 6e37ffa commit 4f28c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SearchableTrait.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php namespace Nicolaslopezj\Searchable;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
Expand Down Expand Up @@ -164,7 +165,7 @@ public function getTableColumns()
*/
protected function getJoins()
{
return array_get($this->searchable, 'joins', []);
return Arr::get($this->searchable, 'joins', []);
}

/**
Expand Down

0 comments on commit 4f28c6a

Please sign in to comment.