Somehow I don’t have access to validation errors in a nested laravel component inside a livewire view. $errors
variable is available in the livewire view but not in a nested laravel component in a livewire view.
livewire/create-form.blade.php (livewire view)
<form ...>
{{-- The following is ok, $errors variable exists and has errors in it --}}
{{ $errors }}
{{-- The following is a laravel component --}}
<x-text-input name="my-input"/>
</form>
components/text-input.blade.php (laravel component used in livewire view)
<input name="{{ $name }}" value=""/>
{{-- The following is not ok, $errors variable doesn't exist in this scope, even though there are validation errors --}}
{{ $errors }}
I’m using livewire v1.0.3
Is it just me or anyone else also having the same problem?