bantenprov/portal-produk-hukum

produk-hukum

dev-master 2018-03-28 14:23 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:50:48 UTC


README

Join the chat at https://gitter.im/produk-hukum/Lobby Scrutinizer Code Quality Build Status Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads

ProdukHukum

Install via composer

  • Development snapshot
$ composer require bantenprov/portal-produk-hukum:dev-master
  • Latest release:
$ composer require bantenprov/portal-produk-hukum

Download via github

$ git clone https://github.com/bantenprov/portal-produk-hukum.git

Edit config/app.php :

'providers' => [

    /*
    * Laravel Framework Service Providers...
    */
    Illuminate\Auth\AuthServiceProvider::class,
    Illuminate\Broadcasting\BroadcastServiceProvider::class,
    Illuminate\Bus\BusServiceProvider::class,
    Illuminate\Cache\CacheServiceProvider::class,
    Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
    Illuminate\Cookie\CookieServiceProvider::class,
    //....
    Bantenprov\ProdukHukum\ProdukHukumServiceProvider::class,

Lakukan migrate :

$ php artisan migrate

Publish database seeder :

$ php artisan vendor:publish --tag=produk-hukum-seeds

Lakukan auto dump :

$ composer dump-autoload

Lakukan seeding :

$ php artisan db:seed --class=BantenprovProdukHukumSeeder

Lakukan publish component vue :

$ php artisan vendor:publish --tag=produk-hukum-assets
$ php artisan vendor:publish --tag=produk-hukum-public

Tambahkan route di dalam file : resources/assets/js/routes.js :

{
    path: '/dashboard',
    redirect: '/dashboard/home',
    component: layout('Default'),
    children: [
        //== ...
        {
         path: '/dashboard/produk-hukum',
         components: {
            main: resolve => require(['./components/views/bantenprov/produk-hukum/DashboardProdukHukum.vue'], resolve),
            navbar: resolve => require(['./components/Navbar.vue'], resolve),
            sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
          },
          meta: {
            title: "ProdukHukum"
           }
       },
        //== ...
    ]
},
function layout(name) {
  return function(resolve) {
    require(['./layouts/' + name + '.vue'], resolve);
  }
}

let routes = [
    //== ...

    {
    path: '/produk-hukum',
    name: 'home',
    component: resolve => require(['./components/bantenprov/produk-hukum/ProdukHukum.index.vue'], resolve),
    meta: {
        title: "Produk Hukum"
    }
  },
  {
    path: '/produk-hukum/:id',
    name: 'home',
    component: resolve => require(['./components/bantenprov/produk-hukum/ProdukHukum.show.vue'], resolve),
    meta: {
        title: "Produk Hukum"
    }
  },

  //== ...
{
    path: '/admin',
    redirect: '/admin/dashboard/home',
    component: layout('Default'),
    children: [
        //== ...
        {
            path: '/admin/produk-hukum',
            components: {
                main: resolve => require(['./components/bantenprov/produk-hukum/ProdukHukum.index.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "ProdukHukum"
            }
        },
        {
            path: '/admin/produk-hukum/create',
            components: {
                main: resolve => require(['./components/bantenprov/produk-hukum/ProdukHukum.add.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Add ProdukHukum"
            }
        },
        {
            path: '/admin/produk-hukum/:id/edit',
            components: {
                main: resolve => require(['./components/bantenprov/produk-hukum/ProdukHukum.edit.vue'], resolve),
                navbar: resolve => require(['./components/Navbar.vue'], resolve),
                sidebar: resolve => require(['./components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Edit ProdukHukum"
            }
        },
        //== ...
    ]
},

Edit menu resources/assets/js/menu.js

{
    name: 'Dashboard',
    icon: 'fa fa-dashboard',
    childType: 'collapse',
    childItem: [
        //== ...
        {
        name: 'ProdukHukum',
        link: '/dashboard/produk-hukum',
        icon: 'fa fa-angle-double-right'
        },
        //== ...
    ]
},
{
    name: 'Admin',
    icon: 'fa fa-lock',
    childType: 'collapse',
    childItem: [
        //== ...
        {
        name: 'ProdukHukum',
        link: '/admin/produk-hukum',
        icon: 'fa fa-angle-double-right'
        },
        //== ...
    ]
},

Tambahkan components resources/assets/js/components.js :

//== ProdukHukum

import ProdukHukum from './components/bantenprov/produk-hukum/ProdukHukum.chart.vue';
Vue.component('echarts-produk-hukum', ProdukHukum);

import ProdukHukumKota from './components/bantenprov/produk-hukum/ProdukHukumKota.chart.vue';
Vue.component('echarts-produk-hukum-kota', ProdukHukumKota);

import ProdukHukumTahun from './components/bantenprov/produk-hukum/ProdukHukumTahun.chart.vue';
Vue.component('echarts-produk-hukum-tahun', ProdukHukumTahun);

import ProdukHukumAdminShow from './components/bantenprov/produk-hukum/ProdukHukumAdmin.show.vue';
Vue.component('admin-view-produk-hukum-tahun', ProdukHukumAdminShow);

//== Echarts Group Egoverment

import ProdukHukumBar01 from './components/views/bantenprov/produk-hukum/ProdukHukumBar01.vue';
Vue.component('produk-hukum-bar-01', ProdukHukumBar01);

import ProdukHukumBar02 from './components/views/bantenprov/produk-hukum/ProdukHukumBar02.vue';
Vue.component('produk-hukum-bar-02', ProdukHukumBar02);

//== mini bar charts
import ProdukHukumBar03 from './components/views/bantenprov/produk-hukum/ProdukHukumBar03.vue';
Vue.component('produk-hukum-bar-03', ProdukHukumBar03);

import ProdukHukumPie01 from './components/views/bantenprov/produk-hukum/ProdukHukumPie01.vue';
Vue.component('produk-hukum-pie-01', ProdukHukumPie01);

import ProdukHukumPie02 from './components/views/bantenprov/produk-hukum/ProdukHukumPie02.vue';
Vue.component('produk-hukum-pie-02', ProdukHukumPie02);

//== mini pie charts


import ProdukHukumPie03 from './components/views/bantenprov/produk-hukum/ProdukHukumPie03.vue';
Vue.component('produk-hukum-pie-03', ProdukHukumPie03);