Skip to content

Commit

Permalink
Merge pull request #309 from nunomaduro/patch-1
Browse files Browse the repository at this point in the history
Adds default $query value on Searchable::search
  • Loading branch information
taylorotwell authored Oct 4, 2018
2 parents 5a7cbd7 + 67019ec commit 739105f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Searchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function shouldBeSearchable()
* @param Closure $callback
* @return \Laravel\Scout\Builder
*/
public static function search($query, $callback = null)
public static function search($query = '', $callback = null)
{
return new Builder(
new static, $query, $callback, config('scout.soft_delete', false)
Expand Down

0 comments on commit 739105f

Please sign in to comment.