bantenprov/siswa

Nama Siswa

dev-master 2018-05-27 14:03 UTC

This package is not auto-updated.

Last update: 2024-12-22 06:16:07 UTC


README

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

Siswa

Install via composer

  • Development snapshot
$ composer require bantenprov/siswa:dev-master
  • Latest release:
$ composer require bantenprov/siswa

Download via github

$ git clone https://github.com/bantenprov/siswa.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\Siswa\SiswaServiceProvider::class,
    //...

Lakukan migrate :

$ php artisan migrate

Lakukan publish semua komponen :

$ php artisan vendor:publish --tag=siswa-publish

Lakukan auto dump :

$ composer dump-autoload

Lakukan seeding :

$ php artisan db:seed --class=BantenprovSiswaSeeder

Edit menu resources/assets/js/menu.js

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

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

//... Siswa ...//

import SiswaAdminShow from '~/components/bantenprov/siswa/SiswaAdmin.show.vue';
Vue.component('siswa-admin', SiswaAdminShow);

//... Echarts Siswa ...//

import Siswa from '~/components/bantenprov/siswa/Siswa.chart.vue';
Vue.component('siswa-echarts', Siswa);

import SiswaKota from '~/components/bantenprov/siswa/SiswaKota.chart.vue';
Vue.component('siswa-echarts-kota', SiswaKota);

import SiswaTahun from '~/components/bantenprov/siswa/SiswaTahun.chart.vue';
Vue.component('siswa-echarts-tahun', SiswaTahun);

//... Mini Bar Charts Siswa ...//

import SiswaBar01 from '~/components/views/bantenprov/siswa/SiswaBar01.vue';
Vue.component('siswa-bar-01', SiswaBar01);

import SiswaBar02 from '~/components/views/bantenprov/siswa/SiswaBar02.vue';
Vue.component('siswa-bar-02', SiswaBar02);

import SiswaBar03 from '~/components/views/bantenprov/siswa/SiswaBar03.vue';
Vue.component('siswa-bar-03', SiswaBar03);

//... Mini Pie Charts Siswa ...//

import SiswaPie01 from '~/components/views/bantenprov/siswa/SiswaPie01.vue';
Vue.component('siswa-pie-01', SiswaPie01);

import SiswaPie02 from '~/components/views/bantenprov/siswa/SiswaPie02.vue';
Vue.component('siswa-pie-02', SiswaPie02);

import SiswaPie03 from '~/components/views/bantenprov/siswa/SiswaPie03.vue';
Vue.component('siswa-pie-03', SiswaPie03);

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

{
    path: '/dashboard',
    redirect: '/dashboard/home',
    component: layout('Default'),
    children: [
        //...
        // Siswa
        {
            path: '/dashboard/siswa',
            components: {
                main: resolve => require(['~/components/views/bantenprov/siswa/DashboardSiswa.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Siswa"
            }
        },
        //...
    ]
},
{
    path: '/admin',
    redirect: '/admin/dashboard/home',
    component: layout('Default'),
    children: [
        //...
        // Siswa
        {
            path: '/admin/siswa',
            components: {
                main: resolve => require(['~/components/bantenprov/siswa/Siswa.index.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Siswa"
            }
        },
        {
            path: '/admin/siswa/create',
            components: {
                main: resolve => require(['~/components/bantenprov/siswa/Siswa.add.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Add Siswa"
            }
        },
        {
            path: '/admin/siswa/:id',
            components: {
                main: resolve => require(['~/components/bantenprov/siswa/Siswa.show.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "View Siswa"
            }
        },
        {
            path: '/admin/siswa/:id/edit',
            components: {
                main: resolve => require(['~/components/bantenprov/siswa/Siswa.edit.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
            },
            meta: {
                title: "Edit Siswa"
            }
        },
        //...
    ]
},