I have found how to show image that Stored in local disk of Storage in laravel:
Routes:
Route::post('/clientarea/form/{id}/responses/individual', [ResponsesController::class,'individual']);
Route::get('/image/show/users/{userId}/{formId}/{fileName}',[ResponsesController::class,'showImage']);
ResponsesController::class,'individual' :
$answer is the path of image in local storage(local disk, not public disk)
$response.= "<img alt='image' title='image' class='answersImage' src='/image/show/$answer'>";
return $response;
return respose and append it in the blade by jquery:
success: function(data, textStatus, jQxhr ){
$('#respContainer').html(response);
};
ResponsesController::class,'showImage'] :
$path='users/'.$userId.'/'.$formId.'/'.$filename;
$file = Storage::get($path);
$response = response()->make($file, 200);
$response->header('Content-Type', 'image/jpg');
return $response;
and It will show the image that Stored in local disk.