Elasticsearch Missing404Exception in Connection.php#602 - laravel

I'm running a Laravel application & Elasticsearch5.5
When accessing ES on the application I get following error:
Log file:
[2019-02-22 09:43:24] local.ERROR: {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"ah_index_dev2_en","index_uuid":"_na_","index":"ah_index_dev2_en"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"ah_index_dev2_en","index_uuid":"_na_","index":"ah_index_dev2_en"},"status":404} {"userId":2359,"email":"steven.gerrits.94#gmail.com","exception":"[object] (Elasticsearch\\Common\\Exceptions\\Missing404Exception(code: 404): {\"error\":{\"root_cause\":[{\"type\":\"index_not_found_exception\",\"reason\":\"no such index\",\"resource.type\":\"index_or_alias\",\"resource.id\":\"ah_index_dev2_en\",\"index_uuid\":\"_na_\",\"index\":\"ah_index_dev2_en\"}],\"type\":\"index_not_found_exception\",\"reason\":\"no such index\",\"resource.type\":\"index_or_alias\",\"resource.id\":\"ah_index_dev2_en\",\"index_uuid\":\"_na_\",\"index\":\"ah_index_dev2_en\"},\"status\":404} at /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:602)
[stacktrace]
#0 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(273): Elasticsearch\\Connections\\Connection->process4xxError(Array, Array, Array)
#1 /Users/stevengerrits/ah-website/vendor/react/promise/src/FulfilledPromise.php(25): Elasticsearch\\Connections\\Connection->Elasticsearch\\Connections\\{closure}(Array)
#2 /Users/stevengerrits/ah-website/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\\Promise\\FulfilledPromise->then(Object(Closure), NULL, NULL)
#3 /Users/stevengerrits/ah-website/vendor/guzzlehttp/ringphp/src/Core.php(341): GuzzleHttp\\Ring\\Future\\CompletedFutureValue->then(Object(Closure), NULL, NULL)
#4 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(294): GuzzleHttp\\Ring\\Core::proxy(Object(GuzzleHttp\\Ring\\Future\\CompletedFutureArray), Object(Closure))
#5 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(171): Elasticsearch\\Connections\\Connection->Elasticsearch\\Connections\\{closure}(Array, Object(Elasticsearch\\Connections\\Connection), Object(Elasticsearch\\Transport), Array)
#6 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(106): Elasticsearch\\Connections\\Connection->performRequest('GET', '/ah_index_dev2_...', Array, '{\"query\":{\"quer...', Array, Object(Elasticsearch\\Transport))
#7 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(1578): Elasticsearch\\Transport->performRequest('GET', '/ah_index_dev2_...', Array, Array, Array)
#8 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(952): Elasticsearch\\Client->performRequest(Object(Elasticsearch\\Endpoints\\Search))
#9 [internal function]: Elasticsearch\\Client->search(Array)
#10 /Users/stevengerrits/ah-website/vendor/cviebrock/laravel-elasticsearch/src/Manager.php(133): call_user_func_array(Array, Array)
#11 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Cviebrock\\LaravelElasticsearch\\Manager->__call('search', Array)
#12 /Users/stevengerrits/ah-website/app/Service/ElasticSearchService.php(450): Illuminate\\Support\\Facades\\Facade::__callStatic('search', Array)
#13 /Users/stevengerrits/ah-website/app/Http/Controllers/SearchController.php(556): App\\Service\\ElasticSearchService->simpleSearch()
#14 /Users/stevengerrits/ah-website/app/Http/Controllers/SearchController.php(434): App\\Http\\Controllers\\SearchController->doSearch()
#15 [internal function]: App\\Http\\Controllers\\SearchController->horseSearch(Object(Illuminate\\Http\\Request), NULL, 'horse')
#16 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#17 /Users/stevengerrits/ah-website/app/Http/Controllers/Controller.php(30): Illuminate\\Routing\\Controller->callAction('horseSearch', Array)
#18 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): App\\Http\\Controllers\\Controller->callAction('horseSearch', Array)
#19 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\SearchController), 'horseSearch')
#20 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\\Routing\\Route->runController()
#21 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\\Routing\\Route->run()
#22 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#23 /Users/stevengerrits/ah-website/app/Http/Middleware/Language.php(36): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#24 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\Http\\Middleware\\Language->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#27 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /Users/stevengerrits/ah-website/app/Http/Middleware/LanguageSetting.php(41): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#30 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\Http\\Middleware\\LanguageSetting->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(68): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#33 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#36 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#39 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#42 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#45 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#48 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /Users/stevengerrits/ah-website/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(65): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#55 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /Users/stevengerrits/ah-website/vendor/fideloper/proxy/src/TrustProxies.php(56): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#58 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#61 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#64 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#67 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#70 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#73 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /Users/stevengerrits/ah-website/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 /Users/stevengerrits/ah-website/server.php(21): require_once('/Users/stevenge...')
#77 {main}
"}
I did research & found this thread:
Errors upon searching in Elasticsearch using PHP
So I checked if my ES is running. When running with "./bin/elasticsearch" I get following answer which it's running, ok?
[2019-02-22T09:00:11,578][INFO ][o.e.n.Node ] [] initializing ...
[2019-02-22T09:00:11,647][INFO ][o.e.e.NodeEnvironment ] [EqUb7-7] using [1] data paths, mounts [[/ (/dev/disk1s1)]], net usable_space [193.1gb], net total_space [233.4gb], spins? [unknown], types [apfs]
[2019-02-22T09:00:11,647][INFO ][o.e.e.NodeEnvironment ] [EqUb7-7] heap size [1.9gb], compressed ordinary object pointers [true]
[2019-02-22T09:00:11,648][INFO ][o.e.n.Node ] node name [EqUb7-7] derived from node ID [EqUb7-7fR3er1V_1KbKyiA]; set [node.name] to override
[2019-02-22T09:00:11,648][INFO ][o.e.n.Node ] version[5.5.0], pid[36077], build[260387d/2017-06-30T23:16:05.735Z], OS[Mac OS X/10.14.2/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/11.0.2/11.0.2+9-LTS]
[2019-02-22T09:00:11,649][INFO ][o.e.n.Node ] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+DisableExplicitGC, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/users/stevengerrits/elasticsearch-5.5.0]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [aggs-matrix-stats]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [ingest-common]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [lang-expression]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [lang-groovy]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [lang-mustache]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [lang-painless]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [parent-join]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [percolator]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [reindex]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [transport-netty3]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [transport-netty4]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] no plugins loaded
[2019-02-22T09:00:13,441][INFO ][o.e.d.DiscoveryModule ] [EqUb7-7] using discovery type [zen]
[2019-02-22T09:00:13,804][INFO ][o.e.n.Node ] initialized
[2019-02-22T09:00:13,804][INFO ][o.e.n.Node ] [EqUb7-7] starting ...
[2019-02-22T09:00:13,989][INFO ][o.e.t.TransportService ] [EqUb7-7] publish_address {127.0.0.1:9300}, bound_addresses {[fe80::1]:9300}, {[::1]:9300}, {127.0.0.1:9300}
[2019-02-22T09:00:17,056][INFO ][o.e.c.s.ClusterService ] [EqUb7-7] new_master {EqUb7-7}{EqUb7-7fR3er1V_1KbKyiA}{SLRzB7PtSUyeI8J7hwMnWQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2019-02-22T09:00:17,083][INFO ][o.e.h.n.Netty4HttpServerTransport] [EqUb7-7] publish_address {127.0.0.1:9200}, bound_addresses {[fe80::1]:9200}, {[::1]:9200}, {127.0.0.1:9200}
[2019-02-22T09:00:17,083][INFO ][o.e.n.Node ] [EqUb7-7] started
[2019-02-22T09:00:17,101][INFO ][o.e.g.GatewayService ] [EqUb7-7] recovered [0] indices into cluster_state
doing a curl 'http://localhost:9200/?pretty'
gives:
{
"name" : "Hfe5NY6",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "jDUNRES3SuC5bhUesVpNnw",
"version" : {
"number" : "5.4.0",
"build_hash" : "780f8c4",
"build_date" : "2017-04-28T17:43:27.229Z",
"build_snapshot" : false,
"lucene_version" : "6.5.0"
},
"tagline" : "You Know, for Search"
}

Related

Laravel 5.6: Unsupported operand types

I am on Laravel 5.6 with PHP 7.3. Whenever I try to login to my app it throws the following error:
Unsupported operand types {"exception":"[object]
(Symfony\Component\Debug\Exception\FatalThrowableError(code: 0):
Unsupported operand types at
/home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Support/Arr.php:219)
[stacktrace]
Here is the stack trace:
[2020-11-03 06:26:10] local.ERROR: Unsupported operand types {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Unsupported operand types at /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Support/Arr.php:219)
[stacktrace]
#0 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2642): Illuminate\\Support\\Arr::flatten(Array)
#1 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1963): Illuminate\\Database\\Query\\Builder->getBindings()
#2 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1951): Illuminate\\Database\\Query\\Builder->runSelect()
#3 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2435): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#4 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1952): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#5 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2362): Illuminate\\Database\\Query\\Builder->get(Array)
#6 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2290): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#7 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/DatabasePresenceVerifier.php(55): Illuminate\\Database\\Query\\Builder->count()
#8 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php(645): Illuminate\\Validation\\DatabasePresenceVerifier->getCount('users', 'email', 'ehsan.elahi#zer...', NULL, NULL, Array)
#9 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php(617): Illuminate\\Validation\\Validator->getExistCount(NULL, 'users', 'email', 'ehsan.elahi#zer...', Array)
#10 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(365): Illuminate\\Validation\\Validator->validateExists('email', 'ehsan.elahi#zer...', Array, Object(Phirater\\Domain\\Validation\\CustomValidator))
#11 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(268): Illuminate\\Validation\\Validator->validateAttribute('email', 'Exists')
#12 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(293): Illuminate\\Validation\\Validator->passes()
#13 /home/vagrant/code/phirater-l51/app/Domain/Sessions/LoginValidator.php(27): Illuminate\\Validation\\Validator->fails()
#14 /home/vagrant/code/phirater-l51/app/Domain/Configuration/ValidationCommandBus.php(84): Phirater\\Domain\\Sessions\\LoginValidator->validate(Object(Phirater\\Domain\\Sessions\\LoginCommand))
#15 /home/vagrant/code/phirater-l51/app/Domain/Configuration/ValidationCommandBus.php(62): Phirater\\Domain\\Configuration\\ValidationCommandBus->validateCommand(Object(Phirater\\Domain\\Sessions\\LoginCommand))
#16 /home/vagrant/code/phirater-l51/app/Domain/Core/ValidationCommandBus.php(15): Phirater\\Domain\\Configuration\\ValidationCommandBus->execute(Object(Phirater\\Domain\\Sessions\\LoginCommand))
#17 /home/vagrant/code/phirater-l51/app/Http/Controllers/SessionsController.php(57): Phirater\\Http\\Controllers\\SessionsController->execute(Object(Phirater\\Domain\\Sessions\\LoginCommand))
#18 [internal function]: Phirater\\Http\\Controllers\\SessionsController->auth(Object(Illuminate\\Http\\Request))
#19 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#20 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('auth', Array)
#21 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Phirater\\Http\\Controllers\\SessionsController), 'auth')
#22 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\\Routing\\Route->runController()
#23 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(665): Illuminate\\Routing\\Route->run()
#24 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/vagrant/code/phirater-l51/vendor/graham-campbell/throttle/src/Http/Middleware/ThrottleMiddleware.php(64): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): GrahamCampbell\\Throttle\\Http\\Middleware\\ThrottleMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure), '45', '5')
#27 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/vagrant/code/phirater-l51/app/Http/Middleware/RedirectIfAuthenticated.php(45): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Phirater\\Http\\Middleware\\RedirectIfAuthenticated->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(667): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(642): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#34 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(608): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#35 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(597): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#36 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#37 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/vagrant/code/phirater-l51/app/Http/Middleware/SslRedirect.php(22): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Phirater\\Http\\Middleware\\SslRedirect->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(62): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/vagrant/code/phirater-l51/vendor/dingo/api/src/Http/Middleware/Request.php(111): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Dingo\\Api\\Http\\Middleware\\Request->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#61 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#62 /home/vagrant/code/phirater-l51/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#63 {main}
"}
This is my LoginValidator class:
class LoginValidator
{
/**
* #param $command
*
* #throws LoginException
*/
public function validate($command)
{
$validator = \Validator::make(
[
'email' => $command->email,
'password' => $command->password,
],
[
'email' => ['required', 'email', 'exists:users,email'],
'password' => ['required', 'min:3']
],
[
'email.exists' => "Username and password didn't match"
]
);
if ($validator->fails()) {
throw (new LoginException())
->setErrors($validator->messages());
}
}
}
Apparently the error originates from this line if ($validator->fails()). What is going wrong here? What is the solution?

ReflectionException Class Illuminate\Http\Factory does not exist

I'm new to laravel and am getting the following error when attempting to use the Factory class for validation on user input.
ReflectionException
Class Illuminate\Http\Factory does not exist
Route::post('results.edited', function (\Illuminate\Http\Request $request,
\Illuminate\Http\Factory $validator) {
$validation = $validator->make($request->all(), [
'comment' => 'required|min:10'
]);
if ($validation->fails()){
return redirect()->back()->withErrors($validation);
}
return redirect()->route('results.index')->with('info', 'Results Status Updated ' .
$request->input('result') . $request->input('comment'));
})->name('results.update');
I've tried the following with no success:
$ composer update
$ composer dump-autoload
ReflectionException thrown with message "Class Illuminate\Http\Factory does not exist"
Stacktrace:
#50 ReflectionException in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/RouteSignatureParameters.php:25
#49 ReflectionParameter:getClass in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/RouteSignatureParameters.php:25
#48 Illuminate\Routing\RouteSignatureParameters:Illuminate\Routing\{closure} in [internal]:0
#47 array_filter in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/RouteSignatureParameters.php:26
#46 Illuminate\Routing\RouteSignatureParameters:fromAction in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Route.php:471
#45 Illuminate\Routing\Route:signatureParameters in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/ImplicitRouteBinding.php:24
#44 Illuminate\Routing\ImplicitRouteBinding:resolveForRoute in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:787
#43 Illuminate\Routing\Router:substituteImplicitBindings in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:39
#42 Illuminate\Routing\Middleware\SubstituteBindings:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#41 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#40 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75
#39 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#38 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#37 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#36 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#34 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:56
#33 Illuminate\Session\Middleware\StartSession:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#31 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#30 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#28 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66
#27 Illuminate\Cookie\Middleware\EncryptCookies:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#25 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#24 Illuminate\Pipeline\Pipeline:then in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682
#23 Illuminate\Routing\Router:runRouteWithinStack in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:657
#22 Illuminate\Routing\Router:runRoute in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:623
#21 Illuminate\Routing\Router:dispatchToRoute in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:612
#20 Illuminate\Routing\Router:dispatch in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176
#19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
#17 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
#14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27
#11 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62
#8 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/fideloper/proxy/src/TrustProxies.php:57
#5 Fideloper\Proxy\TrustProxies:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#2 Illuminate\Pipeline\Pipeline:then in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116
#0 Illuminate\Foundation\Http\Kernel:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/public/index.php:55
Illuminate\Http\Factory class does not exist.
You need to inject Illuminate\Validation\Factory instead or even cleaner Illuminate\Contracts\Validation\Factory

Active Director Ldap connection using Spring security

i am getting this error while trying to authenticate username and password against windows Active directory using
ActiveDirectoryLdapAuthenticationProvider class. If anybody has any idea please share it ........
Versions
3.2.0.RELEASE
4.0.1.RELEASE
Error:
14:40:35,786 ERROR [io.undertow.request] (default task-6) UT005023: Exception handling request to /eFin_iAnalytics/j_spring_security_check: java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.replaceEach(Lj ava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
at org.springframework.ldap.core.DistinguishedName.un mangleCompositeName(DistinguishedName.java:250) [spring-ldap-core-1.3.2.RELEASE.jar:1.3.2.RELEASE]
at org.springframework.ldap.core.DistinguishedName.pa rse(DistinguishedName.java:217) [spring-ldap-core-1.3.2.RELEASE.jar:1.3.2.RELEASE]
at org.springframework.ldap.core.DistinguishedName.<i nit>(DistinguishedName.java:176) [spring-ldap-core-1.3.2.RELEASE.jar:1.3.2.RELEASE]
at org.springframework.security.ldap.SpringSecurityLd apTemplate.searchForSingleEntryInternal(SpringSecu rityLdapTemplate.java:208) [spring-security-ldap-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.ldap.authentication.a d.ActiveDirectoryLdapAuthenticationProvider.search ForUser(ActiveDirectoryLdapAuthenticationProvider. java:285) [spring-security-ldap-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.ldap.authentication.a d.ActiveDirectoryLdapAuthenticationProvider.doAuth entication(ActiveDirectoryLdapAuthenticationProvid er.java:130) [spring-security-ldap-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.ldap.authentication.A bstractLdapAuthenticationProvider.authenticate(Abs tractLdapAuthenticationProvider.java:61) [spring-security-ldap-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.authentication.Provid erManager.authenticate(ProviderManager.java:156) [spring-security-core-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.authentication.Provid erManager.authenticate(ProviderManager.java:177) [spring-security-core-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.web.authentication.Us ernamePasswordAuthenticationFilter.attemptAuthenti cation(UsernamePasswordAuthenticationFilter.java:9 4) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.web.authentication.Ab stractAuthenticationProcessingFilter.doFilter(Abst ractAuthenticationProcessingFilter.java:211) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.web.context.request.a sync.WebAsyncManagerIntegrationFilter.doFilterInte rnal(WebAsyncManagerIntegrationFilter.java:50) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:108) [spring-web-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.web.context.SecurityC ontextPersistenceFilter.doFilter(SecurityContextPe rsistenceFilter.java:87) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 342) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.web.FilterChainProxy. doFilterInternal(FilterChainProxy.java:192) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.security.web.FilterChainProxy. doFilter(FilterChainProxy.java:160) [spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
at org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:344) [spring-web-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:261) [spring-web-4.0.1.RELEASE.jar:4.0.1.RELEASE]
at io.undertow.servlet.core.ManagedFilter.doFilter(Ma nagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterC hainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at com.adv.efin.ianalytics.webapp.filter.MDCFilter.do Filter(MDCFilter.java:77) [classes:]
at io.undertow.servlet.core.ManagedFilter.doFilter(Ma nagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterC hainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.FilterHandler.handleR equest(FilterHandler.java:85) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.security.ServletSecur ityRoleHandler.handleRequest(ServletSecurityRoleHa ndler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.ServletDispatchingHan dler.handleRequest(ServletDispatchingHandler.java: 36) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at org.wildfly.extension.undertow.security.SecurityCo ntextAssociationHandler.handleRequest(SecurityCont extAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.security.SSLInformati onAssociationHandler.handleRequest(SSLInformationA ssociationHandler.java:113) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.security.handlers.AuthenticationCallHa ndler.handleRequest(AuthenticationCallHandler.java :52) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.security.handlers.AbstractConfidential ityHandler.handleRequest(AbstractConfidentialityHa ndler.java:45) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.security.ServletConfi dentialityConstraintHandler.handleRequest(ServletC onfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.security.CachedAuthen ticatedSessionHandler.handleRequest(CachedAuthenti catedSessionHandler.java:70) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.security.handlers.SecurityInitialHandl er.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
at org.wildfly.extension.undertow.security.jacc.JACCC ontextIdHandler.handleRequest(JACCContextIdHandler .java:61)
at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler .handleFirstRequest(ServletInitialHandler.java:240 ) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler .dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler .access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.servlet.handlers.ServletInitialHandler $1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.server.Connectors.executeRootHandler(C onnectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
at io.undertow.server.HttpServerExchange$1.run(HttpSe rverExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source) [rt.jar:1.7.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source) [rt.jar:1.7.0_11]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_11]
here is the security-bean.xml file
<http use-expressions="true">
<intercept-url pattern="/login" access="permitAll"/>
<intercept-url pattern="/**" access="hasRole('ROLE_USER')"/>
<form-login/>
</http>
<authentication-manager>
<authentication-provider ref="ldapActiveDirectoryAuthProvider"/>
</authentication-manager>
<beans:bean id="ldapActiveDirectoryAuthProvider"
class="org.springframework.security.ldap.authentic ation.ad.ActiveDirectoryLdapAuthenticationProvider ">
<beans:constructor-arg value="example.com"/>
<beans:constructor-arg value="ldap://192.XXX.XX.XXX:389/"/>
<beans:property name="useAuthenticationRequestCredentials" value="true" />
<beans:property name="convertSubErrorCodesToExceptions" value="true" />
</beans:bean>
It looks like the Apache commons-lang version that is getting picked up at runtime is not the same as the one being used at compile time. This can happen for many reason but the most common ones are:
You have two versions of commons-lang in your server classpath.
There is only one version of commons-lang in your server classpath but it's an older one that doesn't include the following method:
StringUtils.replaceEach
Hope this helps.

Laravel 5 / zofe/rapyd-laravel Datagrid : ErrorException in Factory.php line 150: array_merge(): Argument #2 is not an array

This is my first post on stackoverflow :)
I am new to Laravel and tried to display an array into a grid.
I choosed zofe/rapyd-laravel Datagrid, but even if it seems simple I cannot get it to display..
Here is my code :
public function index()
{
$reader = Reader::createFromPath('../uploads/pcl.csv');
$reader->setDelimiter(";");
$data = $reader->fetchAll();
//->toHTML('table-csv-data with-header');
//dd($data);
$headers = $reader->fetchOne();
//dd($headers);
$dataset = DataSet::source($data)->getSet();
//dd($dataset);
$grid = DataGrid::source($dataset);
//dd($grid);
return view('welcome',$grid);
and here is the 'welcome' blade file :
<html>
<head>
<title>Laravel</title>
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
<!-- rapyd -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
{!! Rapyd::head() !!}
<!-- rapyd -->
</head>
</head>
<body>
<hr>
<p>
{{ $grid }}
</p>
</body>
</html>
The pcl.csv :
"nom";"prenom"
"B";"Alain"
"F";"Bruno"
"D";"Fabrice"
In the index function, all the dd commands display correct datas, but when I launch the serve command, I get this error :
[2015-06-03 15:22:43] local.ERROR: exception 'ErrorException' with message 'array_merge(): Argument #2 is not an array' in C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\View\Factory.php:150
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'array_merge(): ...', 'C:\wamp\www\aff...', 150, Array)
#1 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\View\Factory.php(150): array_merge(Array, Object(Zofe\Rapyd\DataGrid\DataGrid))
#2 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(592): Illuminate\View\Factory->make('welcome', Object(Zofe\Rapyd\DataGrid\DataGrid), Array)
#3 C:\wamp\www\affichePCL\app\Http\Controllers\WelcomeController.php(67): view('welcome', Object(Zofe\Rapyd\DataGrid\DataGrid))
#4 [internal function]: affichePCL\Http\Controllers\WelcomeController->index()
#5 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(246): call_user_func_array(Array, Array)
#6 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(162): Illuminate\Routing\Controller->callAction('index', Array)
#7 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(107): Illuminate\Routing\ControllerDispatcher->call(Object(affichePCL\Http\Controllers\WelcomeController), Object(Illuminate\Routing\Route), 'index')
#8 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#9 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(141): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#10 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#11 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(101): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#12 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(108): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#13 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(67): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(affichePCL\Http\Controllers\WelcomeController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'index')
#14 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\Route.php(204): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'affichePCL\Http...', 'index')
#15 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\Route.php(134): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))
#16 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\Router.php(701): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#17 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#18 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(141): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#19 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(101): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#21 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\Router.php(703): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#22 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\Router.php(670): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#23 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Routing\Router.php(628): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#24 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(214): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#25 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#26 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(141): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#27 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 C:\wamp\www\affichePCL\app\Http\Middleware\VerifyCsrfToken.php(17): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#29 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(125): affichePCL\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(55): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(125): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#32 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(61): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#33 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(125): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#34 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(36): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(125): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#36 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(40): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#37 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(125): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#38 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#39 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(125): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(101): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#42 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(115): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#43 C:\wamp\www\affichePCL\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(84): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#44 C:\wamp\www\affichePCL\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#45 C:\wamp\www\affichePCL\server.php(21): require_once('C:\wamp\www\aff...')
#46 {main}
Could you help me please ?
Alain
It's because you're passing your data in the wrong way to the view.
Instead of
return view('welcome',$grid);
You should be doing:
return view('welcome')->with('grid', $grid);
or
return view('welcome', ['grid' => $grid]);

Unable to configure EAV setup resource

I'm trying to create a EAV module and I got stuck in here for a very long time.
error msg :
Invalid entity_type specified: gagan_eavfaq
#0 C:\wamp\www\www.ubt.com\app\code\core\Mage\Eav\Model\Config.php(328): Mage::throwException('Invalid entity_...')
#1 C:\wamp\www\www.ubt.com\app\code\core\Mage\Eav\Model\Entity\Abstract.php(276): Mage_Eav_Model_Config->getEntityType('gagan_eavfaq')
#2 C:\wamp\www\www.ubt.com\app\code\local\Gagan\Eavfaq\Model\Resource\Eav\Mysql4\Eavfaq.php(9): Mage_Eav_Model_Entity_Abstract->setType('gagan_eavfaq')
#3 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Resource\Abstract.php(44): Gagan_Eavfaq_Model_Resource_Eav_Mysql4_Eavfaq->_construct()
#4 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Config.php(1348): Mage_Core_Model_Resource_Abstract->__construct(Array)
#5 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Config.php(1380): Mage_Core_Model_Config->getModelInstance('eavfaq_mysql4/e...', Array)
#6 C:\wamp\www\www.ubt.com\app\Mage.php(490): Mage_Core_Model_Config->getResourceModelInstance('eavfaq/eavfaq', Array)
#7 C:\wamp\www\www.ubt.com\app\Mage.php(518): Mage::getResourceModel('eavfaq/eavfaq', Array)
#8 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Abstract.php(139): Mage::getResourceSingleton('eavfaq/eavfaq')
#9 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Abstract.php(225): Mage_Core_Model_Abstract->_getResource()
#10 C:\wamp\www\www.ubt.com\app\code\local\Gagan\Eavfaq\controllers\IndexController.php(8): Mage_Core_Model_Abstract->load(1)
#11 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Controller\Varien\Action.php(419): Gagan_Eavfaq_IndexController->indexAction()
#12 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#13 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Controller\Varien\Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#14 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#15 C:\wamp\www\www.ubt.com\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#16 C:\wamp\www\www.ubt.com\index.php(87): Mage::run('', 'store')
#17 {main}
Config:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Gagan_eavfaq>
<version>0.1.0</version>
</Gagan_eavfaq>
</modules>
<frontend>
<routers>
<eavfaq>
<use>standard</use>
<args>
<module>Gagan_Eavfaq</module>
<frontName>eavfaq</frontName>
</args>
</eavfaq>
</routers>
</frontend>
<global>
<models>
<eavfaq>
<class>Gagan_Eavfaq_Model</class>
<resourceModel>eavfaq_mysql4</resourceModel>
</eavfaq>
<eavfaq_mysql4>
<class>Gagan_Eavfaq_Model_Resource_Eav_Mysql4</class>
<entities>
<dinkchika>
<table>gagan_eavfaq</table>
</dinkchika>
</entities>
</eavfaq_mysql4>
</models>
<resources>
<eavfaq_setup>
<setup>
<module>Gagan_Eavfaq</module>
<class>Gagan_Eavfaq_Entity_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</eavfaq_setup>
<eavfaq_write>
<connection>
<use>core_write</use>
</connection>
</eavfaq_write>
<eavfaq_read>
<connection>
<use>core_read</use>
</connection>
</eavfaq_read>
</resources>
</global>
</config>
Resource :
<?php
class Gagan_Eavfaq_Model_Resource_Eav_Mysql4_Eavfaq
extends Mage_Eav_Model_Entity_Abstract
{
public function _construct() {
$resource = mage::getSingleton('core/resource');
$this->setType('gagan_eavfaq');
$this->setConnection(
$resource->getConnection('eavfaq_read'),
$resource->getConnection('eavfaq_write')
);
}
}
setup :
<?php
class Gagan_Eavfaq_Entity_Setup extends
Mage_Eav_Model_Entity_Setup{
}
install script:
I want this exception to show. It looks like my setup is not finding a way to this file, from this I can conclude something is wrong with my config. But I've checked that several time still no luck. Please help. Thank you
<?php $installer = $this;
throw new Exception("set up configured ");
folder structure:

Resources