Helper for countries laravel package
You can install the package via composer:
composer require eliseekn/countries-helper
//In your controller
$countries = CountriesHelper::getAll();
//In your blade file
<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>
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email eliseekn@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.