Skip to content

Instantly share code, notes, and snippets.

@hoanganh25991
Created January 6, 2016 01:52
Show Gist options
  • Save hoanganh25991/6b066207869d06e08cf1 to your computer and use it in GitHub Desktop.
Save hoanganh25991/6b066207869d06e08cf1 to your computer and use it in GitHub Desktop.
view rely on 'info' injected from controller, what happen if $messages is not format as array(key => array())
@section('messages')
<div id="page_messages">
@foreach($messages as $key => $values)
@foreach($values as $value)
<input type="hidden" name="{{$key}}" value="{{$value}}">
@endforeach
@endforeach
</div>
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment