@taijuten - Thanks, a bit more info would probably help.
I have done a complete mock of the form to show what I am doing. Note the comments I made to show what I want to do.
And here is an image for additional help
Imgur
So essentially then it currently returns all sub categories, what I want to do is for the user to select the category and then it will pass that category_id to the next form-group for the sub categories and only display the sub categories for the selected category.
The sub_category table has a gallery_categories_id which i can use to match with the selected gallery.
Hope that makes more sense.
{!! Form::open(['url' => '/admin/gallery_images/store', 'files' => true]) !!}
{!! Form::hidden('invisible', $temp_image) !!}
<div class="col-md-12 text-center image-space">
<img src="/images/gallery/Temp/{!! $temp_image !!}" alt="" class="img-responsive img-thumbnail">
</div>
<div>
<h3><b>Step 2</b> - Select where to place this image</h3>
<hr>
</div>
{{-- Choose a category from the radios provided, this is where I need to get the $category->id and
pass it to the next element for the sub category selection --}}
<div class="form-group">
<p><b>Choose a category:</b></p>
@foreach (App\Http\Models\GalleryCategories::all() as $category)
{!! Form::label('category_id', $category->name) !!}
{!! Form::radio('category_id', $category->id, null, ['class' => 'form-field']) !!}
@endforeach
</div>
{{-- Using the category id passed to this form-group I can then access only the sub categories
that have a gallery_categories_id = category --}}
<div class="form-group">
<p><b>Choose a sub category:</b></p>
@foreach (App\Http\Models\GallerySubCategories::all() as $sub_category)
{!! Form::label('sub_category_id', $sub_category->name) !!}
{!! Form::radio('sub_category_id', $sub_category->id, null, ['class' => 'form-field']) !!}
@endforeach
</div>
<div>
<h3><b>Step 3</b> - Image information</h3>
<hr>
</div>
<div class="form-group">
{!! Form::label('image_title', 'Title of this image:') !!}
{!! Form::text('image_name', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('image_description', 'Description for this image:') !!}
{!! Form::textarea('image_description', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('image_tags', 'Enter tags, separate each with a comma:') !!}
{!! Form::text('image_tags', null, ['class' => 'form-control']) !!}
</div>
{!! Form::submit('Upload to gallery', ['class' => 'btn btn-primary pull-right']) !!}
{!! Form::close() !!}
@endif
</div>