Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

tonning/vue-laravel-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = {
        old: {!! json_encode(old()) !!},
    };
</script>

In your app.js file

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

Usage

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published