Unless you have a typo in this post, your error is coming from this line:
@foreach (json_decode($form->, true) as $images)
It also looks like you're storing it as filename, but you're referencing it as name, which won't cause an error, but will result in a null value being returned.
Do this instead:
@foreach (json_decode($form, true) as $image)
<a href="{{ url('images/' . $image->filename) }}" class="portfolio-box">
<img src="{{ url('images/' . $image->filename) }}" class="img-responsive" alt="--">
<!-- rest of your markup -->
</a>
@endforeach
One thing I'd recommend doing is making the path the image's location an accessor on your model to make it easier to reference:
// In your model
public function getImagePathAttribute()
{
return url('images/' . $this->filename);
}
// Usage
$image->image_path;