how to use old for select in blade laravel
<select name="example">
<option {{ old('example') == $value ? "selected" : "" }} value="{{ $value }}">{{$label}}</option>
how to use old for select in blade laravel
<select name="example">
<option {{ old('example') == $value ? "selected" : "" }} value="{{ $value }}">{{$label}}</option>
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us