Gist bbdc8ea0722b7c0e8570030af7c3a9ef
✓ Published0🌍 Public
NNaoray
Last edited Nov 19, 2017
Created on Nov 19, 2017
This example demonstrates a form field for phone number input within a Blade template, using the Laravel framework and Vue.js. It shows how to bind the input value to a Vue model property (`form.phone`) and conditionally display a validation error message. The code uses Vue’s `v-model` directive for two-way data binding and the `v-show` directive to toggle the error message’s visibility based on the presence of a validation error via `form.errors.has('phone')` and `form.errors.get('phone')`. The interface is styled with Bootstrap classes for layout and error styling.
AI-generated description