fashionphile / vue-base
Artisan command that builds vue base that can use Vuex and Vue Router
Installs: 37 251
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
Suggests
- laravel/framework: Makes use of the laravel eloquent scopes.
This package is auto-updated.
Last update: 2024-10-30 01:26:36 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