I was trying to save post with newlines. I see the post is being saved and newlines are shown in post edit page. But when i show the post it removes all the spaces and shows all text together.

it is a simple trick. When we show the data on blade/view we have to call the variable in a different manner.

{!! nl2br(e($share->detail)) !!}

It will output the text with newline.