Laravel-AdminLTE: Error message Not showing in componet
I implement Input component and i try to validate the value. validation working fine but not showing error messages …
<x-adminlte-input name="stu_sur_name" id="stu_sur_name" label="Sur Name" igroup-size="sm" placeholder="Dimul Gomisge">
<x-slot name="prependSlot">
<div class="input-group-text">
<i class="fas fa-user text-lightblue"></i>
</div>
</x-slot>
</x-adminlte-input>
Can any one help this
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (1 by maintainers)
@Shidersz yes, i can confirm it is working as expected. thank you for your efforts
Hi @tmgomas from what I can guess, it appears that Livewire do not flash errors into the session when your validation fails, since Livewire do not make a full page reload on these cases. See next links for more info:
This conflicts with our current code since we put the error display logic inside the component class, and it appears that validation errors are only available on the blade files for Livewire. Please, understand this package wasn’t focused on supporting Livewire. For the moment, try the next fix temporarily:
Open the file
vendor/jeroennoten/laravel-adminlte/resources/views/components/form/input-group-component.blade.php
and edit next lines:by replacing by next ones:
If this solution works anyway, please tell us and we going to try to address this problem…