If you just want a string, then replace $sell->image = json_encode($imagelist); with $sell->i...
Check out Intervention Image here. That should help you work with images with ease. Sample: $image =...
To get back to the first issue... Route::get('/products/{productname}', array( 'as' => 'whatever'...
Try changing the handle parameters public function handle($request, Closure $next) { ... }
Try this to get the response data from the stream. $response->getBody();
The Laravel portal for problem solving, knowledge sharing and community building.