bantenprov/prestasi

Nama Prestasi

dev-master 2018-05-27 00:46 UTC

This package is not auto-updated.

Last update: 2024-12-22 06:31:53 UTC


README

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

Prestasi

Install via composer

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

Download via github

git clone https://github.com/bantenprov/prestasi.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\Prestasi\PrestasiServiceProvider::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=prestasi-publish

Lakukan auto dump :

composer dump-autoload

Lakukan seeding :

  • Seeding semua seeder
php artisan db:seed --class=BantenprovPrestasiSeeder
  • Seeding secara individual
php artisan db:seed --class=BantenprovPrestasiSeederJenisPrestasi
php artisan db:seed --class=BantenprovPrestasiSeederMasterPrestasi
php artisan db:seed --class=BantenprovPrestasiSeederPrestasi

Edit menu resources/assets/js/menu.js

{
    name: 'Dashboard',
    icon: 'fa fa-dashboard',
    childType: 'collapse',
    childItem: [
        //...
        // Jenis Prestasi
        {
            name: 'Jenis Prestasi',
            link: '/dashboard/jenis-prestasi',
            icon: 'fa fa-angle-double-right',
        },
        // Master Prestasi
        {
            name: 'Master Prestasi',
            link: '/dashboard/master-prestasi',
            icon: 'fa fa-angle-double-right',
        },
        // Prestasi
        {
            name: 'Prestasi',
            link: '/dashboard/prestasi',
            icon: 'fa fa-angle-double-right',
        },
        //...
    ]
},
{
    name: 'Admin',
    icon: 'fa fa-lock',
    childType: 'collapse',
    childItem: [
        //...
        // Jenis Prestasi
        {
            name: 'Jenis Prestasi',
            link: '/admin/jenis-prestasi',
            icon: 'fa fa-angle-double-right',
        },
        // Master Prestasi
        {
            name: 'Master Prestasi',
            link: '/admin/master-prestasi',
            icon: 'fa fa-angle-double-right',
        },
        // Prestasi
        {
            name: 'Prestasi',
            link: '/admin/prestasi',
            icon: 'fa fa-angle-double-right',
        },
        //...
    ]
},

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

//... Jenis Prestasi ...//

import JenisPrestasiAdminShow from '~/components/bantenprov/prestasi/jenis-prestasi/JenisPrestasiAdmin.show.vue';
Vue.component('jenis-prestasi-admin', JenisPrestasiAdminShow);

//... Echarts Jenis Prestasi ...//

import JenisPrestasi from '~/components/bantenprov/prestasi/jenis-prestasi/JenisPrestasi.chart.vue';
Vue.component('jenis-prestasi-echarts', JenisPrestasi);

import JenisPrestasiKota from '~/components/bantenprov/prestasi/jenis-prestasi/JenisPrestasiKota.chart.vue';
Vue.component('jenis-prestasi-echarts-kota', JenisPrestasiKota);

import JenisPrestasiTahun from '~/components/bantenprov/prestasi/jenis-prestasi/JenisPrestasiTahun.chart.vue';
Vue.component('jenis-prestasi-echarts-tahun', JenisPrestasiTahun);

//... Mini Bar Charts Jenis Prestasi ...//

import JenisPrestasiBar01 from '~/components/views/bantenprov/prestasi/jenis-prestasi/JenisPrestasiBar01.vue';
Vue.component('jenis-prestasi-bar-01', JenisPrestasiBar01);

import JenisPrestasiBar02 from '~/components/views/bantenprov/prestasi/jenis-prestasi/JenisPrestasiBar02.vue';
Vue.component('jenis-prestasi-bar-02', JenisPrestasiBar02);

import JenisPrestasiBar03 from '~/components/views/bantenprov/prestasi/jenis-prestasi/JenisPrestasiBar03.vue';
Vue.component('jenis-prestasi-bar-03', JenisPrestasiBar03);

//... Mini Pie Charts Jenis Prestasi ...//

import JenisPrestasiPie01 from '~/components/views/bantenprov/prestasi/jenis-prestasi/JenisPrestasiPie01.vue';
Vue.component('jenis-prestasi-pie-01', JenisPrestasiPie01);

import JenisPrestasiPie02 from '~/components/views/bantenprov/prestasi/jenis-prestasi/JenisPrestasiPie02.vue';
Vue.component('jenis-prestasi-pie-02', JenisPrestasiPie02);

import JenisPrestasiPie03 from '~/components/views/bantenprov/prestasi/jenis-prestasi/JenisPrestasiPie03.vue';
Vue.component('jenis-prestasi-pie-03', JenisPrestasiPie03);

//... Master Prestasi ...//

import MasterPrestasiAdminShow from '~/components/bantenprov/prestasi/master-prestasi/MasterPrestasiAdmin.show.vue';
Vue.component('master-prestasi-admin', MasterPrestasiAdminShow);

//... Echarts Master Prestasi ...//

import MasterPrestasi from '~/components/bantenprov/prestasi/master-prestasi/MasterPrestasi.chart.vue';
Vue.component('master-prestasi-echarts', MasterPrestasi);

import MasterPrestasiKota from '~/components/bantenprov/prestasi/master-prestasi/MasterPrestasiKota.chart.vue';
Vue.component('master-prestasi-echarts-kota', MasterPrestasiKota);

import MasterPrestasiTahun from '~/components/bantenprov/prestasi/master-prestasi/MasterPrestasiTahun.chart.vue';
Vue.component('master-prestasi-echarts-tahun', MasterPrestasiTahun);

//... Mini Bar Charts Master Prestasi ...//

import MasterPrestasiBar01 from '~/components/views/bantenprov/prestasi/master-prestasi/MasterPrestasiBar01.vue';
Vue.component('master-prestasi-bar-01', MasterPrestasiBar01);

import MasterPrestasiBar02 from '~/components/views/bantenprov/prestasi/master-prestasi/MasterPrestasiBar02.vue';
Vue.component('master-prestasi-bar-02', MasterPrestasiBar02);

import MasterPrestasiBar03 from '~/components/views/bantenprov/prestasi/master-prestasi/MasterPrestasiBar03.vue';
Vue.component('master-prestasi-bar-03', MasterPrestasiBar03);

//... Mini Pie Charts Master Prestasi ...//

import MasterPrestasiPie01 from '~/components/views/bantenprov/prestasi/master-prestasi/MasterPrestasiPie01.vue';
Vue.component('master-prestasi-pie-01', MasterPrestasiPie01);

import MasterPrestasiPie02 from '~/components/views/bantenprov/prestasi/master-prestasi/MasterPrestasiPie02.vue';
Vue.component('master-prestasi-pie-02', MasterPrestasiPie02);

import MasterPrestasiPie03 from '~/components/views/bantenprov/prestasi/master-prestasi/MasterPrestasiPie03.vue';
Vue.component('master-prestasi-pie-03', MasterPrestasiPie03);

//... Prestasi ...//

import PrestasiAdminShow from '~/components/bantenprov/prestasi/prestasi/PrestasiAdmin.show.vue';
Vue.component('prestasi-admin', PrestasiAdminShow);

//... Echarts Prestasi ...//

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

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

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

//... Mini Bar Charts Prestasi ...//

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

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

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

//... Mini Pie Charts Prestasi ...//

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

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

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

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

{
    path: '/dashboard',
    redirect: '/dashboard/home',
    component: layout('Default'),
    children: [
        //...
        // Jenis Prestasi
        {
            path: '/dashboard/jenis-prestasi',
            components: {
                main: resolve => require(['~/components/views/bantenprov/prestasi/jenis-prestasi/JenisPrestasiDashboard.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Jenis Prestasi",
            },
        },
        // Master Prestasi
        {
            path: '/dashboard/master-prestasi',
            components: {
                main: resolve => require(['~/components/views/bantenprov/prestasi/master-prestasi/MasterPrestasiDashboard.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Master Prestasi",
            },
        },
        // Prestasi
        {
            path: '/dashboard/prestasi',
            components: {
                main: resolve => require(['~/components/views/bantenprov/prestasi/prestasi/PrestasiDashboard.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Prestasi",
            },
        },
        //...
    ]
},
{
    path: '/admin',
    redirect: '/admin/dashboard/home',
    component: layout('Default'),
    children: [
        //...
        // Jenis Prestasi
        {
            path: '/admin/jenis-prestasi',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/jenis-prestasi/JenisPrestasi.index.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Jenis Prestasi",
            },
        },
        {
            path: '/admin/jenis-prestasi/create',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/jenis-prestasi/JenisPrestasi.add.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Add Jenis Prestasi",
            },
        },
        {
            path: '/admin/jenis-prestasi/:id',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/jenis-prestasi/JenisPrestasi.show.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "View Jenis Prestasi",
            },
        },
        {
            path: '/admin/jenis-prestasi/:id/edit',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/jenis-prestasi/JenisPrestasi.edit.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Edit Jenis Prestasi",
            },
        },
        // Master Prestasi
        {
            path: '/admin/master-prestasi',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/master-prestasi/MasterPrestasi.index.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Master Prestasi",
            },
        },
        {
            path: '/admin/master-prestasi/create',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/master-prestasi/MasterPrestasi.add.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Add Master Prestasi",
            },
        },
        {
            path: '/admin/master-prestasi/:id',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/master-prestasi/MasterPrestasi.show.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "View Master Prestasi",
            },
        },
        {
            path: '/admin/master-prestasi/:id/edit',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/master-prestasi/MasterPrestasi.edit.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Edit Master Prestasi",
            },
        },
        // Prestasi
        {
            path: '/admin/prestasi',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/prestasi/Prestasi.index.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Prestasi",
            },
        },
        {
            path: '/admin/prestasi/create',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/prestasi/Prestasi.add.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Add Prestasi",
            },
        },
        {
            path: '/admin/prestasi/:id',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/prestasi/Prestasi.show.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "View Prestasi",
            },
        },
        {
            path: '/admin/prestasi/:id/edit',
            components: {
                main: resolve => require(['~/components/bantenprov/prestasi/prestasi/Prestasi.edit.vue'], resolve),
                navbar: resolve => require(['~/components/Navbar.vue'], resolve),
                sidebar: resolve => require(['~/components/Sidebar.vue'], resolve),
            },
            meta: {
                title: "Edit Prestasi",
            },
        },
        //...
    ]
},