petercoles / multilingual-country-list Goto Github PK
View Code? Open in Web Editor NEWLaravel wrapper for generating country lookups and data objects using the awesome country-list data
License: MIT License
Laravel wrapper for generating country lookups and data objects using the awesome country-list data
License: MIT License
How can I add a new country code to the list?
Editing vendor files isn't good :|
Any Ideas?
Today i was trying this package out.
As described i was using:
Countries::lookup();
But Countries cannot be found.
Because it is a singleton it is possible to do this but it would be nice to use the above method.
$countries_provider = app('countries');
$countries = $countries_provider->lookup('nl_NL');
Is this an issue of the package?
Hi Peter !
composer require petercoles/multilingual-country-list
not include last update in Maker.php : countryName($isoCode, $locale = 'en').
could not install dependency on Laravel 10, could we add laravel 10 with php 8.2 support? Thanks!
Laravel 8 is giving me the following error:
Symfony\Component\ErrorHandler\Error\FatalError
Trait 'App\Http\Controllers\Countries' not found
Here's my controller's code:
namespace App\Http\Controllers;
use Validator;
use App\Models\Customer;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class CustomerController extends Controller
{
use Countries;
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$customers = Customer::where('user_id', Auth::id())->paginate(9);
return view('customers')->with(['customers' => $customers]);
}
The error point to "use Countries".
Hi,
How can I search for a specific country in a specific language.
Countries::lookup(Lang::locale(), 'PT')
Portugal
I can find this method on the documentation, there is any method to do this?
It would be really useful...
Thanks,
Miguel Ferreira
Composer doesn't work with Laravel 6.
Sure, it's quick fix in the composer.json file
I have detected that not only countries are being listed but also some regions belonging to countries such as Canary Islands or Ceuta & Melilla wich are part of Spain. Is there any way to avoid this and list only countries? Thank you very much.
As this collection is multilingual, it would be cool to have an option to search for country ISO by the name in any=unknown language
Hello!
I see the master has been updated to work with laravel 11 but there is no new version tag. So it will not work unless you put dev-master in the composer dependecy.
Could you publish a tag for laravel 11?
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.