Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

disable livewire error model

<script>
  window.livewire.connection.driver.showHtmlModal = function (response) {
    const json = JSON.parse(response);
    if(json.status === 419){
      return location.reload();
    }
    window.livewire.emit('livewire-exception', json.error)
  };
</script>
@sujay
Source by github.com #
 
PREVIOUS NEXT
Tagged: #disable #livewire #error #model
ADD COMMENT
Topic
Name
3+4 =