1.1.1 • Published 6 years ago

laravel-vue-easy-settings v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Easy Settings

Vue application for using together with the Laravel 5 package - alexusmai/easy-settings

Easy Settings Vue App

Installation

NPM

$ npm install laravel-vue-easy-settings --save

Usage

IF your App using Vuex store

import EasySettings from 'laravel-vue-easy-settings'
import store from './path-to-your-store/store'   // your Vuex store

Vue.use(EasySettings, {store})

ELSE you need create new vuex instance

import Vue from 'vue';
import Vuex from 'vuex';
import EasySettings from 'laravel-vue-easy-settings'

Vue.use(Vuex);

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

Vue.use(EasySettings, {store});

The application store module will be registered under the name 'esettings'

Now vue component is registered and you can use it in your app

<easy-settings-app></easy-settings-app>

Don't forget add a csrf token to head block in your Laravel view

<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">

Warning! Package use axios (Promise) - use babel-polyfill for ie11

The application uses the bootstrap 4 styles - (/src/assets/styles.scss) If your application already uses these styles, then you do not need to do anything extra.

Else - you can import styles

import '~laravel-vue-easy-settings/assets/styles.scss';
1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago