diff --git a/src/Iverberk/Larasearch/Traits/SearchableTrait.php b/src/Iverberk/Larasearch/Traits/SearchableTrait.php index 66c78d9..94688a2 100644 --- a/src/Iverberk/Larasearch/Traits/SearchableTrait.php +++ b/src/Iverberk/Larasearch/Traits/SearchableTrait.php @@ -43,7 +43,9 @@ public static function getProxy() if ($instance instanceof Model) { - static::$__es_proxy = App::make('iverberk.larasearch.proxy', $instance); + //static::$__es_proxy = App::make('iverberk.larasearch.proxy', $instance); + //Commented the above line and added the below. App::make gives error in laravel 5 + static::$__es_proxy = new \Iverberk\Larasearch\Proxy($instance); return static::$__es_proxy; } else