fashionphile/vue-base

There is no license information available for the latest version (0.1.1) of this package.

Artisan command that builds vue base that can use Vuex and Vue Router

0.1.1 2019-11-14 18:02 UTC

This package is auto-updated.

Last update: 2024-04-30 00:28:03 UTC


README

built by Fashionphile

Purpose

This is to build a very simple boilerplate structure for vue instances if you are going to need several in your site.

Install

Run composer install fashionphile/vue-base;

Set up

create a vue-base.php file in you configs folder in your base laravel install. In the file you will add an array with the path to where you want the vue base to install your instances.

<?php

return [
    'path' => 'path/to/folder',
];

After add the following path to your app/Console/Kernel.php in your commands array

    protected $commands = [
        \VueBase\VueBaseCommand::class
    ];

Running the command

To run the command enter this in your command line: php artisan vue-base:create

After it will create your directory in wherever you designated in your config. You will need to add the app.js file from that directory to your mix-manifest (or whatever compiler you are using) to use the component.

Contact me:

Author Dano Gillette

https://twitter.com/danodev

http://danogillette.com