I have this code where I needed to store in a variable so I display it in view, I\'ve tried different approach of packing the \"Form header\" and using CSRF is not working
You need to declare your action like this :
Check this : https://laravel.com/docs/5.4/controllers#resource-controllers
Maybe you will have to add the csrf_token to your form.
or you can do with Blade Form https://laravelcollective.com/docs/5.0/html :
{!! Form::open(array('url' => route('product.update', $details->id), 'method' => 'PUT') !!}
{!! Form::close() !!}
edit : You have to use PUT/PATCH method to your form (see the link about resource controllers)