stijnvanouplines / blade-country-flags Goto Github PK
View Code? Open in Web Editor NEWA package to easily make use of country flags in your Laravel Blade views.
License: MIT License
A package to easily make use of country flags in your Laravel Blade views.
License: MIT License
Maybe the question is something stupid,
but how can i do such a thing?
<x-flag-4x3-{{ $country->code }} class="w-6" />
That is, to add a variable
edit
my solution
{!! svg('flag-4x3-' . $val->country->code, ['class' => 'w-5'])->toHtml() !!}
Installation in conjunction with previously installed Filament PLugin "Filament Language Switch" fails:
Problem 1
- stijnvanouplines/blade-country-flags[1.0.0, ..., 1.0.1] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- stijnvanouplines/blade-country-flags 1.0.2 requires illuminate/support ^8.0|^9.0 -> found illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.4] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires stijnvanouplines/blade-country-flags * -> satisfiable by stijnvanouplines/blade-country-flags[1.0.0, 1.0.1, 1.0.2].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require stijnvanouplines/blade-country-flags:*" to figure out if any version is installable, or "composer require stijnvanouplines/blade-country-flags:^2.1" if you know which you need.
Laravel Version: 10.3.3
Filament Version: 2.17.16
Filament Language Switch (bezhansalleh/filament-language-switch) Version: 1.0.6
PHP Version: 8.2.3
OS: WSL2 (Ubuntu 22.04.2 LTS) on Windows 11
Do you have a list/array of all the flags useful for admin selection?
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.