Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help Wanted #53

Closed
guysolamour opened this issue Feb 11, 2020 · 1 comment
Closed

Help Wanted #53

guysolamour opened this issue Feb 11, 2020 · 1 comment

Comments

@guysolamour
Copy link

Hello, how to implement this package in a laravel application with the laravel filemanager created by the same author.

@alexusmai
Copy link
Owner

This package is working so good in my application. I use the default js file included in this package but wheb I load vue js and my own components it is not working.

How to fix it or how can I use the vue front package

Hi,

In your application:

import Vue from 'vue';
import Vuex from 'vuex';
import FileManager from 'laravel-file-manager';
import Test from 'TestComponent';

Vue.use(Vuex);

// create Vuex store, if you don't have it
const store = new Vuex.Store();

Vue.use(FileManager, {store});

new Vue({
  el: '#fm',
  store,
  template: '<test></test>',
});

TestComponent.vue

<template>
    <div>
        <file-manager></file-manager>
    </div>
</template>

<script>
  export default {
    name: 'Test',
  }
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants