@tonning/vue-laravel-errors

1.0.1 • Public • Published

Installation

Pull in by running: yarn add @tonning/vue-laravel-old

In your app.blade.php layouts file add:

<script type="text/javascript">
    let Laravel = {
        error: {!! json_encode($errors->messages()) !!},
    };
</script>

In your app.js file

  • import Vue from 'vue'
  • import VueLaravelOld from 'vue-laravel-error'
  • Vue.use('vue-laravel-error', Laravel.error)

Usage

Now you can use it in Vue and your Vue components
Vue.$error.get('email') or this.$error.get('email')

Readme

Keywords

Package Sidebar

Install

npm i @tonning/vue-laravel-errors

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

11.2 kB

Total Files

7

Last publish

Collaborators

  • kristoffertonning