From 1f32ea0e7930c4faeb6eaf2f52cf5cf10fb89674 Mon Sep 17 00:00:00 2001 From: lmahesh5 Date: Wed, 1 Jul 2015 16:12:42 +0530 Subject: [PATCH] Update SearchableTrait.php App::make gives error in laravel 5, so using new operator. --- src/Iverberk/Larasearch/Traits/SearchableTrait.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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