laravel select option and old value code example
Example: laravel old value for select option
@foreach($services as $service)
@if (old('category') == $service->id)
<option value="{{ $service->id }}" selected>{{ $service->title }}</option>
@else
<option value="{{ $service->id }}">{{ $service->title }}</option>
@endif
@endforeach