You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
I noticed when I'm using Livewire the errors don't show. It's because in Livewire the errors are not in the session, so this line always returns an empty bag.
I also noticed that the check for hasError is not that usefull because in the layouts it's always wrapped in the @error directive. Like form-errors.blade.php
Maybe just get rid of the hasError part and just use the showError, it should be compatible with Livewire that way and you don't double check for errors.
What's your opinion on this?
The text was updated successfully, but these errors were encountered:
We could depend on the Illuminate\View\Middleware\ShareErrorsFromSession middleware and assume the errors are shared with the view instances. This is how Livewire updates the errors as well.
Thanks for this library, saves me a lot of time.
I noticed when I'm using Livewire the errors don't show. It's because in Livewire the errors are not in the session, so this line always returns an empty bag.
I also noticed that the check for hasError is not that usefull because in the layouts it's always wrapped in the
@error
directive. Like form-errors.blade.phpMaybe just get rid of the
hasError
part and just use theshowError
, it should be compatible with Livewire that way and you don't double check for errors.What's your opinion on this?
The text was updated successfully, but these errors were encountered: