Skip to content

Commit

Permalink
update: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
eliseekn committed Oct 14, 2021
1 parent 45f2073 commit 277280f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ composer require eliseekn/countries-helper
$countries = CountriesHelper::getAll();

//In your blade file
@foreach($countries as $country)
@if (!is_null($country))
@foreach($country as $key => $value)<option value="{{ $key }}">{{ $value }}</option>@endforeach
@endif
@endforeach
<label for="country" class="form-label">Select country</label>
<select name="country" id="country" class="form-select">
@foreach($countries as $country)
@if (!is_null($country))
@foreach($country as $key => $value)<option value="{{ $key }}">{{ $value }}</option>@endforeach
@endif
@endforeach
</select>
```

### Testing
Expand Down

0 comments on commit 277280f

Please sign in to comment.