bantenprov/sekolah

Nama Sekolah

dev-master 2018-05-27 22:23 UTC

This package is not auto-updated.

Last update: 2024-04-28 04:24:15 UTC


README

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

Sekolah

Install via composer

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

Download via github

$ git clone https://github.com/bantenprov/sekolah.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\Sekolah\SekolahServiceProvider::class,
    //...

Edit app/Http/Kernel.php

protected $routeMiddleware = [
    'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
    'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
    'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
    'can' => \Illuminate\Auth\Middleware\Authorize::class,
    'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
    'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
    
    // -----------------

    'role' => \Laratrust\Middleware\LaratrustRole::class,
    'permission' => \Laratrust\Middleware\LaratrustPermission::class,
    'ability' => \Laratrust\Middleware\LaratrustAbility::class,
];

Lakukan migrate :

$ php artisan migrate

Lakukan publish semua komponen :

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

Lakukan auto dump :

$ composer dump-autoload

Lakukan seeding :

  • Seeding semua seeder
$ php artisan db:seed --class=BantenprovSekolahSeeder
  • Seeding secara individual
$ php artisan db:seed --class=BantenprovSekolahSeederJenisSekolah
$ php artisan db:seed --class=BantenprovSekolahSeederSekolah
$ php artisan db:seed --class=BantenprovSekolahSeederProdiSekolah

Edit menu resources/assets/js/menu.js

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

        //...

    ]
},

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

//... Sekolah ...//

import SekolahAdminShow from '~/components/bantenprov/sekolah/sekolah/SekolahAdmin.show.vue';
Vue.component('sekolah-admin', SekolahAdminShow);

//... Echarts Sekolah ...//

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

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

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

//... Mini Bar Charts Sekolah ...//

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

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

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

//... Mini Pie Charts Sekolah ...//

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

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

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

//... Prodi Sekolah ...//

import ProdiSekolahAdminShow from '~/components/bantenprov/sekolah/prodi-sekolah/ProdiSekolahAdmin.show.vue';
Vue.component('prodi-sekolah-admin', ProdiSekolahAdminShow);

//... Echarts Prodi Sekolah ...//

import ProdiSekolah from '~/components/bantenprov/sekolah/prodi-sekolah/ProdiSekolah.chart.vue';
Vue.component('prodi-sekolah-echarts', ProdiSekolah);

import ProdiSekolahKota from '~/components/bantenprov/sekolah/prodi-sekolah/ProdiSekolahKota.chart.vue';
Vue.component('prodi-sekolah-echarts-kota', ProdiSekolahKota);

import ProdiSekolahTahun from '~/components/bantenprov/sekolah/prodi-sekolah/ProdiSekolahTahun.chart.vue';
Vue.component('prodi-sekolah-echarts-tahun', ProdiSekolahTahun);

//... Mini Bar Charts Prodi Sekolah ...//

import ProdiSekolahBar01 from '~/components/views/bantenprov/sekolah/prodi-sekolah/ProdiSekolahBar01.vue';
Vue.component('prodi-sekolah-bar-01', ProdiSekolahBar01);

import ProdiSekolahBar02 from '~/components/views/bantenprov/sekolah/prodi-sekolah/ProdiSekolahBar02.vue';
Vue.component('prodi-sekolah-bar-02', ProdiSekolahBar02);

import ProdiSekolahBar03 from '~/components/views/bantenprov/sekolah/prodi-sekolah/ProdiSekolahBar03.vue';
Vue.component('prodi-sekolah-bar-03', ProdiSekolahBar03);

//... Mini Pie Charts Prodi Sekolah ...//

import ProdiSekolahPie01 from '~/components/views/bantenprov/sekolah/prodi-sekolah/ProdiSekolahPie01.vue';
Vue.component('prodi-sekolah-pie-01', ProdiSekolahPie01);

import ProdiSekolahPie02 from '~/components/views/bantenprov/sekolah/prodi-sekolah/ProdiSekolahPie02.vue';
Vue.component('prodi-sekolah-pie-02', ProdiSekolahPie02);

import ProdiSekolahPie03 from '~/components/views/bantenprov/sekolah/prodi-sekolah/ProdiSekolahPie03.vue';
Vue.component('prodi-sekolah-pie-03', ProdiSekolahPie03);

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

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

        //Admin sekolah
        {
        path: '/admin/admin-sekolah',
        components: {
            main: resolve => require(['~/components/bantenprov/sekolah/admin-sekolah/AdminSekolah.index.vue'], resolve),
            navbar: resolve => require(['~/components/Navbar.vue'], resolve),
            sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
        },
        meta: {
            title: "admin Sekolah"
        }
        },
        {
        path: '/admin/admin-sekolah/create',
        components: {
            main: resolve => require(['~/components/bantenprov/sekolah/admin-sekolah/AdminSekolah.add.vue'], resolve),
            navbar: resolve => require(['~/components/Navbar.vue'], resolve),
            sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
        },
        meta: {
            title: "Add admin Sekolah"
        }
        },
        {
        path: '/admin/admin-sekolah/:id',
        components: {
            main: resolve => require(['~/components/bantenprov/sekolah/admin-sekolah/AdminSekolah.show.vue'], resolve),
            navbar: resolve => require(['~/components/Navbar.vue'], resolve),
            sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
        },
        meta: {
            title: "View admin Sekolah"
        }
        },
        {
        path: '/admin/admin-sekolah/:id/edit',
        components: {
            main: resolve => require(['~/components/bantenprov/sekolah/admin-sekolah/AdminSekolah.edit.vue'], resolve),
            navbar: resolve => require(['~/components/Navbar.vue'], resolve),
            sidebar: resolve => require(['~/components/Sidebar.vue'], resolve)
        },
        meta: {
            title: "Edit admin Sekolah"
        }
        },

        //...
        
    ]
},