use Livewire\Component; class YourLivewireComponent extends Component { public $languages = [ // List of languages here // Ensure they are in alphabetical order ]; // ... other methods and properties ... public function render() { return view('livewire.member.pages.visitor-media-doc-download-page', [ 'languages' => $this->languages, ]); } } Replace YourLivewireComponent with the actual name of your Livewire component class. Then, in your Blade view (visitor-media-doc-download-page.blade.php), you can use the code I provided earlier: html Copy code
@error('language') {{ $message }} @enderror